Package java.nio.charset

Class Summary
Charset sample code for java.nio.charset.Charset definition code for java.nio.charset.Charset A named mapping between sequences of sixteen-bit Unicode code units and sequences of bytes.
CharsetDecoder sample code for java.nio.charset.CharsetDecoder definition code for java.nio.charset.CharsetDecoder An engine that can transform a sequence of bytes in a specific charset into a sequence of sixteen-bit Unicode characters.
CharsetEncoder sample code for java.nio.charset.CharsetEncoder definition code for java.nio.charset.CharsetEncoder An engine that can transform a sequence of sixteen-bit Unicode characters into a sequence of bytes in a specific charset.
CoderResult sample code for java.nio.charset.CoderResult definition code for java.nio.charset.CoderResult A description of the result state of a coder.
CodingErrorAction sample code for java.nio.charset.CodingErrorAction definition code for java.nio.charset.CodingErrorAction A typesafe enumeration for coding-error actions.
 

Exception Summary
CharacterCodingException sample code for java.nio.charset.CharacterCodingException definition code for java.nio.charset.CharacterCodingException Checked exception thrown when a character encoding or decoding error occurs.
IllegalCharsetNameException sample code for java.nio.charset.IllegalCharsetNameException definition code for java.nio.charset.IllegalCharsetNameException Unchecked exception thrown when a string that is not a legal charset name is used as such.
MalformedInputException sample code for java.nio.charset.MalformedInputException definition code for java.nio.charset.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 sample code for java.nio.charset.UnmappableCharacterException definition code for java.nio.charset.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 sample code for java.nio.charset.UnsupportedCharsetException definition code for java.nio.charset.UnsupportedCharsetException Unchecked exception thrown when no support is available for a requested charset.
 

Error Summary
CoderMalfunctionError sample code for java.nio.charset.CoderMalfunctionError definition code for java.nio.charset.CoderMalfunctionError Error thrown when the decodeLoop sample code for java.nio.charset.CharsetDecoder.decodeLoop(java.nio.ByteBuffer, java.nio.CharBuffer) definition code for java.nio.charset.CharsetDecoder.decodeLoop(java.nio.ByteBuffer, java.nio.CharBuffer) method of a CharsetDecoder sample code for java.nio.charset.CharsetDecoder definition code for java.nio.charset.CharsetDecoder , or the encodeLoop sample code for java.nio.charset.CharsetEncoder.encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer) definition code for java.nio.charset.CharsetEncoder.encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer) method of a CharsetEncoder sample code for java.nio.charset.CharsetEncoder definition code for java.nio.charset.CharsetEncoder , throws an unexpected exception.