|
|||||||||
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 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 |
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. |
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(java.nio.charset.CodingErrorAction newAction)
implOnMalformedInput
in class java.nio.charset.CharsetDecoder
newAction
- action to be taken
java.lang.IllegalArgumentException
protected final void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)
implOnUnmappableCharacter
in class java.nio.charset.CharsetDecoder
newAction
- action to be taken
java.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 taken
protected 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 result
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |