private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
public static String decode(String s) { return decode(s, false, StandardCharsets.UTF_8, true); }
/** * Creates an instance of <code>FileURLConnection</code> for establishing * a connection to the file pointed by this <code>URL<code> * * @param url The URL this connection is connected to */ public FileURLConnection(URL url) { super(url); filename = url.getFile(); if (filename == null) { filename = ""; } filename = UriCodec.decode(filename); }
/** * Decodes the argument which is assumed to be encoded in the {@code * x-www-form-urlencoded} MIME content type, assuming the given {@code charsetName}. * *'<p>+' will be converted to space, '%' and two following hex digit * characters are converted to the equivalent byte value. All other * characters are passed through unmodified. For example "A+B+C %24%25" -> * "A B C $%". * * @throws UnsupportedEncodingException if {@code charsetName} is not supported. */ public static String decode(String s, String charsetName) throws UnsupportedEncodingException { return UriCodec.decode(s, true, Charset.forName(charsetName), true); } }
/** * Decodes the argument which is assumed to be encoded in the {@code * x-www-form-urlencoded} MIME content type. * <p> *'+' will be converted to space, '%' and two following hex digit * characters are converted to the equivalent byte value. All other * characters are passed through unmodified. For example "A+B+C %24%25" -> * "A B C $%". * * @param s * the encoded string. * @return the decoded clear-text representation of the given string. * @deprecated Use {@link #decode(String, String)} instead. */ @Deprecated public static String decode(String s) { return UriCodec.decode(s, true, Charset.defaultCharset(), true); }
private JarFile openJarFile() throws IOException { if (jarFileURL.getProtocol().equals("file")) { String decodedFile = UriCodec.decode(jarFileURL.getFile()); return new JarFile(new File(decodedFile), true, ZipFile.OPEN_READ); } else {
public static String decode(String s) { return decode(s, false, StandardCharsets.UTF_8, true); }
public static String decode(String s) { return decode(s, false, StandardCharsets.UTF_8, true); }
private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
public static String decode(String s) { return decode(s, false, StandardCharsets.UTF_8, true); }
public static String decode(String s) { return decode(s, false, StandardCharsets.UTF_8, true); }
private String decode(String s) { return s != null ? UriCodec.decode(s) : null; }
/** * Creates an instance of <code>FileURLConnection</code> for establishing * a connection to the file pointed by this <code>URL<code> * * @param url The URL this connection is connected to */ public FileURLConnection(URL url) { super(url); filename = url.getFile(); if (filename == null) { filename = ""; } filename = UriCodec.decode(filename); }
/** * Creates an instance of <code>FileURLConnection</code> for establishing * a connection to the file pointed by this <code>URL<code> * * @param url The URL this connection is connected to */ public FileURLConnection(URL url) { super(url); filename = url.getFile(); if (filename == null) { filename = ""; } filename = UriCodec.decode(filename); }
/** * Creates an instance of <code>FileURLConnection</code> for establishing * a connection to the file pointed by this <code>URL<code> * * @param url The URL this connection is connected to */ public FileURLConnection(URL url) { super(url); filename = url.getFile(); if (filename == null) { filename = ""; } filename = UriCodec.decode(filename); }
/** * Decodes the argument which is assumed to be encoded in the {@code * x-www-form-urlencoded} MIME content type, assuming the given {@code charsetName}. * *'<p>+' will be converted to space, '%' and two following hex digit * characters are converted to the equivalent byte value. All other * characters are passed through unmodified. For example "A+B+C %24%25" -> * "A B C $%". * * @throws UnsupportedEncodingException if {@code charsetName} is not supported. */ public static String decode(String s, String charsetName) throws UnsupportedEncodingException { return UriCodec.decode(s, true, Charset.forName(charsetName), true); } }