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 booleanprivate boolean(package private) intprivate int(package private) CoderResultprivate int(package private) CharsetSCSU.SCSUDataprivate intprivate byteprivate static final intprivate static final intprivate booleanprivate booleanprivate charprivate intprivate static final intprivate intprivate intvariables of compression heuristicsprivate static final intprivate intprivate intprivate charprivate byteFields inherited from class 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 CoderResultencodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean flush) private voidendLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets) private intprivate byteprivate intgetTrail(CharBuffer source, ByteBuffer target, IntBuffer offsets) private intgetTrailUnicode(CharBuffer source, ByteBuffer target, IntBuffer offsets) private bytegetWindow(int[] offsets) protected voidResets the from Unicode mode of converterprivate booleanisInOffsetWindowOrDirect(int offsetValue, int a) private intloop(CharBuffer source, ByteBuffer target, IntBuffer offsets) private intoutputBytes(CharBuffer source, ByteBuffer target, IntBuffer offsets) private voiduseDynamicWindow(byte windowValue) Methods inherited from class CharsetEncoderICU
cbFromUWriteSub, cbFromUWriteUChars, encode, encodeLoop, fromUCountPending, fromUnicodeWithCallback, fromUWriteBytes, getMaxBytesForString, handleSurrogates, handleSurrogates, implFlush, implOnMalformedInput, implOnUnmappableCharacter, isFallbackUsed, isFromUUseFallback, isFromUUseFallback, isLegalReplacement, maxCharsPerByte, setFallbackUsed, setFromUCallback, setFromUContextMethods inherited from class 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 offsetvariables of compression heuristics -
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:CharsetEncoderICUResets the from Unicode mode of converter- Overrides:
implResetin classCharsetEncoderICU
-
encodeLoop
protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean flush) - Specified by:
encodeLoopin 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
-