Class CharsetUTF8.CharsetEncoderUTF8
java.lang.Object
java.nio.charset.CharsetEncoder
com.ibm.icu.charset.CharsetEncoderICU
com.ibm.icu.charset.CharsetUTF8.CharsetEncoderUTF8
- Enclosing class:
CharsetUTF8
-
Field Summary
FieldsFields 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 TypeMethodDescriptionprivate final CoderResultencodeFourBytes(char[] sourceArray, byte[] targetArray, int sourceLimit, int targetLimit, int char32) private final CoderResultencodeFourBytes(CharBuffer source, ByteBuffer target, int char32) protected CoderResultencodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean flush) protected voidResets the from Unicode mode of converterMethods 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
-
sourceIndex
private int sourceIndex -
targetIndex
private int targetIndex
-
-
Constructor Details
-
CharsetEncoderUTF8
-
-
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
-
encodeFourBytes
private final CoderResult encodeFourBytes(char[] sourceArray, byte[] targetArray, int sourceLimit, int targetLimit, int char32) -
encodeFourBytes
-