/** * Returns an array of encodings that can be detected by the <code>detectEncoding</code> methods. * Note that some of the returned character encodings may not be available on the Java runtime. * * @return an array of encodings that can be detected by the <code>detectEncoding</code> methods. */ public static String[] getDetectableEncodings() { return CharsetDetector.getAllDetectableCharsets(); }
public static void main(String[] args) { String[] detectable = CharsetDetector.getAllDetectableCharsets(); for (int i = 0; i < detectable.length; i++) { String charset = detectable[i]; System.out.println(charset); } }
public static void main(String[] args) { String[] detectable = CharsetDetector.getAllDetectableCharsets(); for (int i = 0; i < detectable.length; i++) { String charset = detectable[i]; System.out.println(charset); } }
public static void main(String[] args) { String[] detectable = CharsetDetector.getAllDetectableCharsets(); for (int i = 0; i < detectable.length; i++) { String charset = detectable[i]; System.out.println(charset); } } }
public static void main(String[] args) { String[] detectable = CharsetDetector.getAllDetectableCharsets(); for (int i = 0; i < detectable.length; i++) { String charset = detectable[i]; System.out.println(charset); } }
public static void main(String[] args) { String[] detectable = CharsetDetector.getAllDetectableCharsets(); for (int i = 0; i < detectable.length; i++) { String charset = detectable[i]; System.out.println(charset); } } }
public static void main(String[] args) { String[] detectable = CharsetDetector.getAllDetectableCharsets(); for (int i = 0; i < detectable.length; i++) { String charset = detectable[i]; System.out.println(charset); } } }
private static String getSupportedEncoding() { return "\nSupported Encoding:\n " + StringUtils.join( CharsetDetector.getAllDetectableCharsets(), ", " ); }
msg.append( StringUtils.join( CharsetDetector.getAllDetectableCharsets(), ", " ) ); throw new UnsupportedEncodingException( msg.toString() );