List of utility methods to do Charset Create
Charset | charsetForVendor(String charsetName) Returns the vendor-specific character set corresponding to the given original character set name and default vendor (that is, the targeted vendor of the device this code is running on). return charsetForVendor(charsetName, getDefaultVendor());
|
Charset | charsetForVendor(String charsetName, String vendor) Returns the vendor-specific character set corresponding to the given original character set name and vendor. charsetName = nameForVendor(charsetName, vendor);
return Charset.forName(charsetName);
|
java.nio.charset.Charset | getCharset(String charsetName) get Charset String defaultCharset = "ISO-8859-1"; if (charsetName == null) charsetName = defaultCharset; try { return java.nio.charset.Charset.forName(charsetName); } catch (IllegalCharsetNameException e) { return java.nio.charset.Charset.forName(defaultCharset); } catch (UnsupportedCharsetException ex) { ... |