Package com.ibm.icu.charset
Class CharsetSCSU.CharsetDecoderSCSU
- java.lang.Object
-
- java.nio.charset.CharsetDecoder
-
- com.ibm.icu.charset.CharsetDecoderICU
-
- com.ibm.icu.charset.CharsetSCSU.CharsetDecoderSCSU
-
- Enclosing class:
- CharsetSCSU
class CharsetSCSU.CharsetDecoderSCSU extends CharsetDecoderICU
-
-
Field Summary
Fields Modifier and Type Field Description (package private) short
b
private static int
ByteMode
private short
byteOne
(package private) java.nio.charset.CoderResult
cr
(package private) CharsetSCSU.SCSUData
data
private byte
dynamicWindow
private static int
EndLoop
private static int
FastSingle
private boolean
isSingleByteMode
private boolean
LabelLoop
private int
nextSourceIndex
private byte
quoteWindow
private static int
SingleByteMode
private int
sourceIndex
private short
state
private static int
UnicodeMode
-
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 CharsetDecoderSCSU(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 void
endLoop(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets)
private int
fastSingle(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, int modeType)
protected void
implReset()
Resets the to Unicode mode of converterprivate int
singleByteMode(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, int modeType)
-
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
-
-
-
-
Field Detail
-
FastSingle
private static final int FastSingle
- See Also:
- Constant Field Values
-
SingleByteMode
private static final int SingleByteMode
- See Also:
- Constant Field Values
-
EndLoop
private static final int EndLoop
- See Also:
- Constant Field Values
-
ByteMode
private static final int ByteMode
- See Also:
- Constant Field Values
-
UnicodeMode
private static final int UnicodeMode
- See Also:
- Constant Field Values
-
b
short b
-
isSingleByteMode
private boolean isSingleByteMode
-
state
private short state
-
quoteWindow
private byte quoteWindow
-
dynamicWindow
private byte dynamicWindow
-
byteOne
private short byteOne
-
sourceIndex
private int sourceIndex
-
nextSourceIndex
private int nextSourceIndex
-
cr
java.nio.charset.CoderResult cr
-
data
CharsetSCSU.SCSUData data
-
LabelLoop
private boolean LabelLoop
-
-
Constructor Detail
-
CharsetDecoderSCSU
public CharsetDecoderSCSU(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
-
fastSingle
private int fastSingle(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, int modeType)
-
singleByteMode
private int singleByteMode(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets, int modeType)
-
endLoop
private void endLoop(java.nio.ByteBuffer source, java.nio.CharBuffer target, java.nio.IntBuffer offsets)
-
-