Class CharsetUTF16.CharsetEncoderUTF16
java.lang.Object
java.nio.charset.CharsetEncoder
com.ibm.icu.charset.CharsetEncoderICU
com.ibm.icu.charset.CharsetUTF16.CharsetEncoderUTF16
- Enclosing class:
CharsetUTF16
-
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 CoderResultencodeChar(CharBuffer source, ByteBuffer target, IntBuffer offsets, char ch) 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
-
temp
private final byte[] temp
-
-
Constructor Details
-
CharsetEncoderUTF16
-
-
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
-
encodeChar
private final CoderResult encodeChar(CharBuffer source, ByteBuffer target, IntBuffer offsets, char ch)
-