Package net.freeutils.charset
Class UTF7Charset.Decoder
java.lang.Object
java.nio.charset.CharsetDecoder
net.freeutils.charset.UTF7Charset.Decoder
- Enclosing class:
UTF7Charset
The Decoder inner class handles the decoding of the UTF7 charset.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CoderResultdecodeLoop(ByteBuffer in, CharBuffer out) Decodes one or more bytes into one or more characters.protected voidResets this decoder, clearing any charset-specific internal state.Methods inherited from class java.nio.charset.CharsetDecoder
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, 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
-
implReset
protected void implReset()Resets this decoder, clearing any charset-specific internal state.- Overrides:
implResetin classCharsetDecoder
-
decodeLoop
Decodes one or more bytes into one or more characters.- Specified by:
decodeLoopin classCharsetDecoder- Parameters:
in- the input byte bufferout- the output character buffer- Returns:
- a coder-result object describing the reason for termination
-