java.nio.charset

Classes

Charset A charset is a named mapping between Unicode characters and byte sequences. 
CharsetDecoder An engine that can transform a sequence of bytes in a specific charset into a sequence of sixteen-bit Unicode characters. 
CharsetEncoder An engine that can transform a sequence of sixteen-bit Unicode characters into a sequence of bytes in a specific charset. 
CoderResult Used to indicate the result of encoding/decoding. 
CodingErrorAction Used to indicate what kind of actions to take in case of encoding/decoding errors. 
StandardCharsets Constant definitions for the standard Charsets. 

Exceptions

CharacterCodingException Checked exception thrown when a character encoding or decoding error occurs. 
IllegalCharsetNameException Unchecked exception thrown when a string that is not a legal charset name is used as such. 
MalformedInputException Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence. 
UnmappableCharacterException Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence. 
UnsupportedCharsetException Unchecked exception thrown when no support is available for a requested charset. 

Errors

CoderMalfunctionError Error thrown when the decodeLoop method of a CharsetDecoder, or the encodeLoop method of a CharsetEncoder, throws an unexpected exception.