Uses of Class
java.nio.charset.CharacterCodingException
| Package | Description |
|---|---|
| java.nio.charset |
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
|
-
Uses of CharacterCodingException in java.nio.charset
Subclasses of CharacterCodingException in java.nio.charset Modifier and Type Class Description classMalformedInputExceptionChecked 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.classUnmappableCharacterExceptionChecked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence.Methods in java.nio.charset that throw CharacterCodingException Modifier and Type Method Description CharBufferCharsetDecoder. decode(ByteBuffer in)Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.ByteBufferCharsetEncoder. encode(CharBuffer in)Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.voidCoderResult. throwException()Throws an exception appropriate to the result described by this object.