Package com.ibm.icu.charset
Class CharsetSCSU.CharsetEncoderSCSU
- java.lang.Object
-
- java.nio.charset.CharsetEncoder
-
- com.ibm.icu.charset.CharsetEncoderICU
-
- com.ibm.icu.charset.CharsetSCSU.CharsetEncoderSCSU
-
- Enclosing class:
- CharsetSCSU
class CharsetSCSU.CharsetEncoderSCSU extends CharsetEncoderICU
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
AfterGetTrail
private boolean
AfterGetTrailUnicode
(package private) int
c
private int
code
(package private) java.nio.charset.CoderResult
cr
private int
currentOffset
(package private) CharsetSCSU.SCSUData
data
private int
delta
private byte
dynamicWindow
private static int
EndLoop
private static int
GetTrailUnicode
private boolean
isSingleByteMode
private boolean
LabelLoop
private char
lead
private int
length
private static int
Loop
private int
nextSourceIndex
private int
offset
private static int
OutputBytes
private int
sourceIndex
private int
targetCapacity
private char
trail
private byte
window
-
Fields inherited from class com.ibm.icu.charset.CharsetEncoderICU
errorBuffer, errorBufferLength, EXT_MAX_UCHARS, fromCharErrorBehaviour, fromUChar32, fromUContext, fromUnicodeStatus, invalidUCharBuffer, invalidUCharLength, MISSING_CHAR_MARKER, preFromUArray, preFromUBegin, preFromUFirstCP, preFromULength, useFallback, useSubChar1
-
-
Constructor Summary
Constructors Constructor Description CharsetEncoderSCSU(CharsetICU cs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.charset.CoderResult
encodeLoop(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets, boolean flush)
private void
endLoop(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
private int
getDynamicOffset()
private byte
getNextDynamicWindow()
private int
getTrail(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
private int
getTrailUnicode(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
private byte
getWindow(int[] offsets)
protected void
implReset()
Resets the from Unicode mode of converterprivate boolean
isInOffsetWindowOrDirect(int offsetValue, int a)
private int
loop(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
private int
outputBytes(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
private void
useDynamicWindow(byte windowValue)
-
Methods inherited from class com.ibm.icu.charset.CharsetEncoderICU
cbFromUWriteSub, cbFromUWriteUChars, encode, encodeLoop, fromUCountPending, fromUnicodeWithCallback, fromUWriteBytes, getMaxBytesForString, handleSurrogates, handleSurrogates, implFlush, implOnMalformedInput, implOnUnmappableCharacter, isFallbackUsed, isFromUUseFallback, isFromUUseFallback, isLegalReplacement, maxCharsPerByte, setFallbackUsed, setFromUCallback, setFromUContext
-
-
-
-
Field Detail
-
Loop
private static final int Loop
- See Also:
- Constant Field Values
-
GetTrailUnicode
private static final int GetTrailUnicode
- See Also:
- Constant Field Values
-
OutputBytes
private static final int OutputBytes
- See Also:
- Constant Field Values
-
EndLoop
private static final int EndLoop
- See Also:
- Constant Field Values
-
delta
private int delta
-
length
private int length
-
offset
private int offset
-
lead
private char lead
-
trail
private char trail
-
code
private int code
-
window
private byte window
-
isSingleByteMode
private boolean isSingleByteMode
-
dynamicWindow
private byte dynamicWindow
-
currentOffset
private int currentOffset
-
c
int c
-
data
CharsetSCSU.SCSUData data
-
sourceIndex
private int sourceIndex
-
nextSourceIndex
private int nextSourceIndex
-
targetCapacity
private int targetCapacity
-
LabelLoop
private boolean LabelLoop
-
AfterGetTrail
private boolean AfterGetTrail
-
AfterGetTrailUnicode
private boolean AfterGetTrailUnicode
-
cr
java.nio.charset.CoderResult cr
-
-
Constructor Detail
-
CharsetEncoderSCSU
public CharsetEncoderSCSU(CharsetICU cs)
-
-
Method Detail
-
implReset
protected void implReset()
Description copied from class:CharsetEncoderICU
Resets the from Unicode mode of converter- Overrides:
implReset
in classCharsetEncoderICU
-
encodeLoop
protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets, boolean flush)
- Specified by:
encodeLoop
in classCharsetEncoderICU
-
getWindow
private byte getWindow(int[] offsets)
-
isInOffsetWindowOrDirect
private boolean isInOffsetWindowOrDirect(int offsetValue, int a)
-
getNextDynamicWindow
private byte getNextDynamicWindow()
-
useDynamicWindow
private void useDynamicWindow(byte windowValue)
-
getDynamicOffset
private int getDynamicOffset()
-
loop
private int loop(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
-
getTrail
private int getTrail(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
-
getTrailUnicode
private int getTrailUnicode(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
-
endLoop
private void endLoop(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
-
outputBytes
private int outputBytes(java.nio.CharBuffer source, java.nio.ByteBuffer target, java.nio.IntBuffer offsets)
-
-