Package org.apache.tomcat.util.buf
Class Utf8Decoder
java.lang.Object
java.nio.charset.CharsetDecoder
org.apache.tomcat.util.buf.Utf8Decoder
Decodes bytes to UTF-8. Extracted from Apache Harmony and modified to reject code points from U+D800 to U+DFFF as per
 RFC3629. The standard Java decoder does not reject these. It has also been modified to reject code points greater
 than U+10FFFF which the standard Java decoder rejects but the harmony one does not.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected CoderResultdecodeLoop(ByteBuffer in, CharBuffer out) Methods inherited from class java.nio.charset.CharsetDecoderaverageCharsPerByte, charset, decode, decode, detectedCharset, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
- 
Constructor Details- 
Utf8Decoderpublic Utf8Decoder()
 
- 
- 
Method Details- 
decodeLoop- Specified by:
- decodeLoopin class- CharsetDecoder
 
 
-