Package net.freeutils.charset
Class EscapedByteLookupCharset.Decoder
java.lang.Object
java.nio.charset.CharsetDecoder
net.freeutils.charset.EscapedByteLookupCharset.Decoder
- Direct Known Subclasses:
PackedGSMCharset.Decoder
- Enclosing class:
- EscapedByteLookupCharset
The Decoder inner class handles the decoding of the
charset using the inverse lookup tables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CoderResult
decodeLoop
(ByteBuffer in, CharBuffer out) Decodes one or more bytes into one or more characters.Methods inherited from class java.nio.charset.CharsetDecoder
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
Constructor Details
-
Decoder
Constructs a Decoder.- Parameters:
cs
- the charset to which this decoder belongs
-
Decoder
Constructs a Decoder.- Parameters:
cs
- the charset to which this decoder belongs
-
-
Method Details
-
decodeLoop
Decodes one or more bytes into one or more characters.- Specified by:
decodeLoop
in classCharsetDecoder
- Parameters:
in
- the input byte bufferout
- the output character buffer- Returns:
- a coder-result object describing the reason for termination
-