|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.nio.charset.CharsetDecoder
com.ibm.icu.charset.CharsetDecoderICU
public abstract class CharsetDecoderICU
An abstract class that provides framework methods of decoding operations for concrete subclasses. In the future this class will contain API that will implement converter sematics of ICU4C.
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.nio.charset.CharsetDecoder |
---|
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implReplaceWith, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected final void implOnMalformedInput(CodingErrorAction newAction)
implOnMalformedInput
in class CharsetDecoder
newAction
- action to be taken
IllegalArgumentException
protected final void implOnUnmappableCharacter(CodingErrorAction newAction)
implOnUnmappableCharacter
in class CharsetDecoder
newAction
- action to be taken
IllegalArgumentException
public final void setToUCallback(CoderResult err, CharsetCallback.Decoder newCallback, Object newContext)
err
- CoderResultnewCallback
- CharsetCallback.EncodernewContext
- Objectprotected final CoderResult implFlush(CharBuffer out)
implFlush
in class CharsetDecoder
out
- action to be taken
protected void implReset()
implReset
in class CharsetDecoder
protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out)
decodeLoop
in class CharsetDecoder
in
- buffer to decodeout
- buffer to populate with decoded result
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |