|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.nio.charset.CharsetDecoder
com.ibm.icu4jni.charset.CharsetDecoderICU
Constructor Summary | |
CharsetDecoderICU(java.nio.charset.Charset cs,
long cHandle)
Constructs a new decoder for the given charset |
Method Summary | |
protected java.nio.charset.CoderResult |
decodeLoop(java.nio.ByteBuffer in,
java.nio.CharBuffer out)
Decodes one or more bytes. |
protected void |
finalize()
Releases the system resources by cleanly closing ICU converter opened |
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 |
implReplaceWith(java.lang.String newReplacement)
Sets this decoders replacement string. |
protected void |
implReset()
Resets the to Unicode mode of converter |
Methods inherited from class java.nio.charset.CharsetDecoder |
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CharsetDecoderICU(java.nio.charset.Charset cs, long cHandle)
cs
- for which the decoder is createdcHandle
- the address of ICU converter
java.lang.RuntimeException
Method Detail |
protected void implReplaceWith(java.lang.String newReplacement)
newReplacement
- to replace the error bytes withprotected final void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)
newAction
- action to be taken
java.lang.IllegalArgumentException
protected final void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)
newAction
- action to be taken
java.lang.IllegalArgumentException
protected final java.nio.charset.CoderResult implFlush(java.nio.CharBuffer out)
out
- action to be taken
protected void implReset()
protected java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer in, java.nio.CharBuffer out)
in
- buffer to decodeout
- buffer to populate with decoded result
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |