Package net.freeutils.charset
Class ByteLookupCharset.Decoder
java.lang.Object
java.nio.charset.CharsetDecoder
net.freeutils.charset.ByteLookupCharset.Decoder
- Enclosing class:
- ByteLookupCharset
The Decoder inner class handles the decoding of the
charset using the inverse lookup table.
-
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
-
-
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
-