public abstract class CharsetDecoderICU
extends java.nio.charset.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 java.nio.charset.CoderResult |
decodeLoop(java.nio.ByteBuffer in,
java.nio.CharBuffer out)
Decodes one or more bytes.
|
protected java.nio.charset.CoderResult |
implFlush(java.nio.CharBuffer out)
Flushes any characters saved in the converter's internal buffer and
resets the converter.
|
protected void |
implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)
Sets the action to be taken if an illegal sequence is encountered
|
protected void |
implOnUnmappableCharacter(java.nio.charset.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(java.nio.charset.CoderResult err,
CharsetCallback.Decoder newCallback,
java.lang.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(java.nio.charset.CodingErrorAction newAction)
implOnMalformedInput
in class java.nio.charset.CharsetDecoder
newAction
- action to be takenjava.lang.IllegalArgumentException
protected final void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)
implOnUnmappableCharacter
in class java.nio.charset.CharsetDecoder
newAction
- action to be takenjava.lang.IllegalArgumentException
public final void setToUCallback(java.nio.charset.CoderResult err, CharsetCallback.Decoder newCallback, java.lang.Object newContext)
err
- CoderResultnewCallback
- CharsetCallback.EncodernewContext
- Objectprotected final java.nio.charset.CoderResult implFlush(java.nio.CharBuffer out)
implFlush
in class java.nio.charset.CharsetDecoder
out
- action to be takenprotected void implReset()
implReset
in class java.nio.charset.CharsetDecoder
protected java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer in, java.nio.CharBuffer out)
decodeLoop
in class java.nio.charset.CharsetDecoder
in
- buffer to decodeout
- buffer to populate with decoded resultpublic final float maxBytesPerChar()
Copyright (c) 2015 IBM Corporation and others.