public static String normalize(String path, String enc) {
        if (Strings.isEmpty(path))
            return null;
        if (path.charAt(0) == '~')
            path = Disks.home() + path.substring(1);
        try {
            return URLDecoder.decode(path, enc);
        }
        catch (UnsupportedEncodingException e) {
            return null;
        }
    }
public static String normalize(String path, String enc) {
        if (Strings.isEmpty(path))
            return null;
        if (path.charAt(0) == '~')
            path = Disks.home() + path.substring(1);
        try {
            return URLDecoder.decode(path, enc);
        }
        catch (UnsupportedEncodingException e) {
            return null;
        }
    }
public static String normalize ( String path , String enc ) { if ( Strings . isEmpty ( path ) ) return null ; if ( path . charAt ( 0 ) == ' ' ) path = Disks . home ( ) + path . substring ( 1 ) ; try { return URLDecoder . decode ( path , enc ) ; } catch ( UnsupportedEncodingException e ) { return null ; } }
让路径变成正常路径，将 ~ 替换成用户主目录

@param path
路径
@param enc
路径编码方式
@return 正常化后的路径
让路径变成正常路径，将 ~ 替换成用户主目录