Example usage for Java java.nio.charset Charset fields, constructors, methods, implement or subclass
The text is from its open source code.
Charset | defaultCharset |
String | name |
String[] | aliases |
SortedMap | availableCharsets() Constructs a sorted map from canonical charset names to charset objects. |
boolean | canEncode() Tells whether or not this charset supports encoding. |
int | compareTo(Charset that) Compares this charset to another. |
boolean | contains(Charset cs) Tells whether or not this charset contains the given charset. |
CharBuffer | decode(ByteBuffer bb) Convenience method that decodes bytes in this charset into Unicode characters. |
String | displayName() Returns this charset's human-readable name for the default locale. |
String | displayName(Locale locale) Returns this charset's human-readable name for the given locale. |
ByteBuffer | encode(CharBuffer cb) Convenience method that encodes Unicode characters into bytes in this charset. |
ByteBuffer | encode(String str) Convenience method that encodes a string into bytes in this charset. |
boolean | equals(Object ob) Tells whether or not this object is equal to another. |
Charset | forName(String charsetName) Returns a charset object for the named charset. |
int | hashCode() Computes a hashcode for this charset. |
boolean | isRegistered() Tells whether or not this charset is registered in the IANA Charset Registry. |
boolean | isSupported(String charsetName) Tells whether the named charset is supported. |
CharsetDecoder | newDecoder() Constructs a new decoder for this charset. |
CharsetEncoder | newEncoder() Constructs a new encoder for this charset. |
String | toString() Returns a string describing this charset. |