package

java.nio.charset

Classes | Description

This package provides translation services between bytes and different character sets. more...

Classes

Charset A charset defines a mapping between a Unicode character sequence and a byte sequence. 
CharsetDecoder A converter that can convert a byte sequence from a charset into a 16-bit Unicode character sequence. 
CharsetEncoder A converter that can converts a 16-bit Unicode character sequence to a byte sequence in some 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. 

Exceptions

CharacterCodingException A CharacterCodingException is thrown when an encoding or decoding error occurs. 
IllegalCharsetNameException An IllegalCharsetNameException is thrown when an illegal charset name is encountered. 
MalformedInputException A MalformedInputException is thrown when a malformed input is encountered, for example if a byte sequence is illegal for the given charset. 
UnmappableCharacterException An UnmappableCharacterException is thrown when an unmappable character for the given charset is encountered. 
UnsupportedCharsetException An UnsupportedCharsetException is thrown when an unsupported charset name is encountered. 

Errors

CoderMalfunctionError A CoderMalfunctionError is thrown when the encoder/decoder is malfunctioning.