Package com.ibm.icu.charset
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 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 TypeMethodDescriptionprivate final CoderResult
encodeFourBytes
(char[] sourceArray, byte[] targetArray, int sourceLimit, int targetLimit, int char32) private final CoderResult
encodeFourBytes
(CharBuffer source, ByteBuffer target, int char32) protected CoderResult
encodeLoop
(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean flush) protected void
Resets the from Unicode mode of converterMethods 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
-
sourceIndex
private int sourceIndex -
targetIndex
private int targetIndex
-
-
Constructor Details
-
CharsetEncoderUTF8
-
-
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
-
encodeFourBytes
private final CoderResult encodeFourBytes(char[] sourceArray, byte[] targetArray, int sourceLimit, int targetLimit, int char32) -
encodeFourBytes
-