public abstract class CharsetEncoderICU extends CharsetEncoder
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(int[] codepoint) |
boolean |
isFallbackUsed()
Is this Encoder allowed to use fallbacks? A fallback mapping is a mapping
that will convert a Unicode codepoint sequence to a byte sequence, but
the encoded byte sequence will round trip convert to a different
Unicode codepoint sequence.
|
boolean |
isLegalReplacement(byte[] repl)
Overrides super class method
|
void |
setFallbackUsed(boolean usesFallback)
Sets whether this Encoder can use fallbacks?
|
void |
setFromUContext(Object newContext)
Sets fromUContext used in callbacks.
|
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterActionpublic boolean isFallbackUsed()
public void setFallbackUsed(boolean usesFallback)
usesFallback - true if the user wants the converter to take
advantage of the fallback mapping, false otherwise.public final void setFromUContext(Object newContext)
newContext - ObjectIllegalArgumentExceptionpublic boolean canEncode(int[] codepoint)
codepoint - Unicode code point as int arraypublic boolean isLegalReplacement(byte[] repl)
isLegalReplacement in class CharsetEncoderCopyright © 2010 - 2020 Adobe. All Rights Reserved