public abstract class CharsetEncoderICU extends CharsetEncoder
| Modifier and Type | Method and Description |
|---|---|
protected CoderResult |
encodeLoop(CharBuffer in,
ByteBuffer out)
Encodes one or more chars.
|
protected CoderResult |
implFlush(ByteBuffer out)
Flushes any characters saved in the converter's internal buffer and
resets the converter.
|
protected void |
implOnMalformedInput(CodingErrorAction newAction)
Sets the action to be taken if an illegal sequence is encountered
|
protected void |
implOnUnmappableCharacter(CodingErrorAction newAction)
Sets the action to be taken if an illegal sequence is encountered
|
protected void |
implReset()
Resets the from Unicode mode of converter
|
boolean |
isFallbackUsed()
Is this Encoder allowed to use fallbacks?
|
boolean |
isLegalReplacement(byte[] repl)
Overrides super class method
|
void |
setFallbackUsed(boolean usesFallback)
Sets whether this Encoder can use fallbacks?
|
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implReplaceWith, 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.protected void implOnMalformedInput(CodingErrorAction newAction)
implOnMalformedInput in class CharsetEncodernewAction - action to be takenIllegalArgumentExceptionprotected void implOnUnmappableCharacter(CodingErrorAction newAction)
implOnUnmappableCharacter in class CharsetEncodernewAction - action to be takenIllegalArgumentExceptionprotected CoderResult implFlush(ByteBuffer out)
implFlush in class CharsetEncoderout - action to be takenprotected void implReset()
implReset in class CharsetEncoderprotected CoderResult encodeLoop(CharBuffer in, ByteBuffer out)
encodeLoop in class CharsetEncoderin - buffer to decodeout - buffer to populate with decoded resultpublic boolean isLegalReplacement(byte[] repl)
isLegalReplacement in class CharsetEncoderCopyright (c) 2007 IBM Corporation and others.