Package java.nio.charset
-
Class Summary Class Description Charset A charset is a named mapping between Unicode characters and byte sequences.CharsetDecoder A converter that can convert a byte sequence from a charset into a 16-bit Unicode character sequence.CharsetEncoder Transforms a sequence of 16-bit Java characters to a byte sequence in some encoding.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.ModifiedUtf8 Encoding and decoding methods for Modified UTF-8StandardCharsets Convenient access to the most important built-in charsets. -
Exception Summary Exception Description CharacterCodingException ACharacterCodingExceptionis thrown when an encoding or decoding error occurs.IllegalCharsetNameException AnIllegalCharsetNameExceptionis thrown when an illegal charset name is encountered.MalformedInputException AMalformedInputExceptionis thrown when a malformed input is encountered, for example if a byte sequence is illegal for the given charset.UnmappableCharacterException AnUnmappableCharacterExceptionis thrown when an unmappable character for the given charset is encountered.UnsupportedCharsetException AnUnsupportedCharsetExceptionis thrown when an unsupported charset name is encountered. -
Error Summary Error Description CoderMalfunctionError ACoderMalfunctionErroris thrown when the encoder/decoder is malfunctioning.