List of usage examples for org.apache.commons.httpclient URI getDefaultDocumentCharset
public static String getDefaultDocumentCharset()
From source file:be.jcdo.mp3searchengines.tools.URIUtils.java
/** * Convert a target string to the specified character encoded string with * the default protocol charset./* w w w . j ava 2 s . co m*/ * * @param target a target string * @return the protocol character encoded string * * @throws URIException if the default protocol charset is not supported * * @see URI#getDefaultProtocolCharset * * @deprecated Do not use. To be removed */ public static String toProtocolCharset(String target) throws URIException { return toUsingCharset(target, URI.getDefaultDocumentCharset(), URI.getDefaultProtocolCharset()); }
From source file:be.jcdo.mp3searchengines.tools.URIUtils.java
/** * Convert a target string to the specified character encoded string with * a given protocol charset.// w w w . java 2 s. com * * @param target a target string * @param charset the transformed protocol charset * @return the protocol character encoded string * * @throws URIException if the charset is not supported * * @deprecated Do not use. To be removed */ public static String toProtocolCharset(String target, String charset) throws URIException { return toUsingCharset(target, URI.getDefaultDocumentCharset(), charset); }
From source file:be.jcdo.mp3searchengines.tools.URIUtils.java
/** * Convert a target string to the specified character encoded string with * the default document charset./*w w w.jav a 2 s. c o m*/ * * @param target a target string * @return the document character encoded string * * @throws URIException if the default protocol charset is not supported * * @see URI#getDefaultDocumentCharset * * @deprecated Do not use. To be removed */ public static String toDocumentCharset(String target) throws URIException { return toUsingCharset(target, URI.getDefaultProtocolCharset(), URI.getDefaultDocumentCharset()); }