Package com.ibm.icu.charset
Class CharsetUTF16.CharsetDecoderUTF16
- java.lang.Object
-
- java.nio.charset.CharsetDecoder
-
- com.ibm.icu.charset.CharsetDecoderICU
-
- com.ibm.icu.charset.CharsetUTF16.CharsetDecoderUTF16
-
- Enclosing class:
- CharsetUTF16
class CharsetUTF16.CharsetDecoderUTF16 extends CharsetDecoderICU
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
actualBOM
private int
actualEndianXOR
private boolean
isBOMReadYet
-
Fields inherited from class com.ibm.icu.charset.CharsetDecoderICU
charErrorBufferArray, charErrorBufferBegin, charErrorBufferLength, EXT_MAX_BYTES, invalidCharBuffer, invalidCharLength, mode, preToUArray, preToUBegin, preToUFirstLength, preToULength, toCharErrorBehaviour, toUBytesArray, toUBytesBegin, toUContext, toULength, toUnicodeStatus
-
-
Constructor Summary
Constructors Constructor Description CharsetDecoderUTF16(CharsetICU cs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.charset.CoderResult
decodeLoop(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, boolean flush)
private java.nio.charset.CoderResult
decodeTrail(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, char lead)
protected void
implReset()
Resets the to Unicode mode of converter-
Methods inherited from class com.ibm.icu.charset.CharsetDecoderICU
decode, decodeLoop, implFlush, implOnMalformedInput, implOnUnmappableCharacter, isFallbackUsed, isToUUseFallback, isToUUseFallback, maxBytesPerChar, setToUCallback, toUCountPending, toUnicodeWithCallback, toUWriteUChars
-
Methods inherited from class java.nio.charset.CharsetDecoder
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implReplaceWith, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
-
-
-
Constructor Detail
-
CharsetDecoderUTF16
public CharsetDecoderUTF16(CharsetICU cs)
-
-
Method Detail
-
implReset
protected void implReset()
Description copied from class:CharsetDecoderICU
Resets the to Unicode mode of converter- Overrides:
implReset
in classCharsetDecoderICU
-
decodeLoop
protected java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, boolean flush)
- Specified by:
decodeLoop
in classCharsetDecoderICU
-
decodeTrail
private final java.nio.charset.CoderResult decodeTrail(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, char lead)
-
-