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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
(package private) int
private int
(package private) CoderResult
private int
(package private) CharsetSCSU.SCSUData
private int
private byte
private static final int
private static final int
private boolean
private boolean
private char
private int
private static final int
private int
private int
private static final int
private int
private int
private char
private byte
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected CoderResult
encodeLoop
(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean flush) private void
endLoop
(CharBuffer source, ByteBuffer target, IntBuffer offsets) private int
private byte
private int
getTrail
(CharBuffer source, ByteBuffer target, IntBuffer offsets) private int
getTrailUnicode
(CharBuffer source, ByteBuffer target, IntBuffer offsets) private byte
getWindow
(int[] offsets) protected void
Resets the from Unicode mode of converterprivate boolean
isInOffsetWindowOrDirect
(int offsetValue, int a) private int
loop
(CharBuffer source, ByteBuffer target, IntBuffer offsets) private int
outputBytes
(CharBuffer source, ByteBuffer target, 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
Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implReplaceWith, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
Field Details
-
Loop
private static final int Loop- See Also:
-
GetTrailUnicode
private static final int GetTrailUnicode- See Also:
-
OutputBytes
private static final int OutputBytes- See Also:
-
EndLoop
private static final int EndLoop- See Also:
-
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
CoderResult cr
-
-
Constructor Details
-
CharsetEncoderSCSU
-
-
Method Details
-
implReset
protected void implReset()Description copied from class:CharsetEncoderICU
Resets the from Unicode mode of converter- Overrides:
implReset
in classCharsetEncoderICU
-
encodeLoop
protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, 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
-
getTrail
-
getTrailUnicode
-
endLoop
-
outputBytes
-