public abstract class CharsetDecoderICU extends CharsetDecoder
| Modifier and Type | Field and Description |
|---|---|
protected static int |
EXT_MAX_BYTES
Deprecated.
This API is ICU internal only.
|
| Modifier and Type | Method and Description |
|---|---|
protected CoderResult |
decodeLoop(ByteBuffer in,
CharBuffer out)
Decodes one or more bytes.
|
protected CoderResult |
implFlush(CharBuffer 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 to Unicode mode of converter
|
float |
maxBytesPerChar()
Returns the maxBytesPerChar value for the Charset that created this decoder.
|
void |
setToUCallback(CoderResult err,
CharsetCallback.Decoder newCallback,
Object newContext)
Sets the callback encoder method and context to be used if an illegal sequence is encounterd.
|
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implReplaceWith, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction@Deprecated protected static final int EXT_MAX_BYTES
protected final void implOnMalformedInput(CodingErrorAction newAction)
implOnMalformedInput in class CharsetDecodernewAction - action to be takenIllegalArgumentExceptionprotected final void implOnUnmappableCharacter(CodingErrorAction newAction)
implOnUnmappableCharacter in class CharsetDecodernewAction - action to be takenIllegalArgumentExceptionpublic final void setToUCallback(CoderResult err, CharsetCallback.Decoder newCallback, Object newContext)
err - CoderResultnewCallback - CharsetCallback.EncodernewContext - Objectprotected final CoderResult implFlush(CharBuffer out)
implFlush in class CharsetDecoderout - action to be takenprotected void implReset()
implReset in class CharsetDecoderprotected CoderResult decodeLoop(ByteBuffer in, CharBuffer out)
decodeLoop in class CharsetDecoderin - buffer to decodeout - buffer to populate with decoded resultpublic final float maxBytesPerChar()
Copyright © 2016 Unicode, Inc. and others.