|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.nio.charset.CharsetEncoder
com.ibm.icu.charset.CharsetEncoderICU
public abstract class CharsetEncoderICU
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 |
encodeLoop(java.nio.CharBuffer in,
java.nio.ByteBuffer out)
Encodes one or more chars. |
protected java.nio.charset.CoderResult |
implFlush(java.nio.ByteBuffer 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 from Unicode mode of converter |
boolean |
isFallbackUsed()
Is this Encoder allowed to use fallbacks? |
boolean |
isLegalReplacement(byte[] repl)
Overrides super class method |
void |
setFallbackUsed(boolean usesFallback)
Sets whether this Encoder can use fallbacks? |
| Methods inherited from class java.nio.charset.CharsetEncoder |
|---|
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implReplaceWith, malformedInputAction, maxBytesPerChar, 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 |
|---|
public boolean isFallbackUsed()
public void setFallbackUsed(boolean usesFallback)
usesFallback - true if the user wants the converter to take
advantage of the fallback mapping, false otherwise.protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)
implOnMalformedInput in class java.nio.charset.CharsetEncodernewAction - action to be taken
java.lang.IllegalArgumentExceptionprotected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)
implOnUnmappableCharacter in class java.nio.charset.CharsetEncodernewAction - action to be taken
java.lang.IllegalArgumentExceptionprotected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer out)
implFlush in class java.nio.charset.CharsetEncoderout - action to be taken
protected void implReset()
implReset in class java.nio.charset.CharsetEncoder
protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in,
java.nio.ByteBuffer out)
encodeLoop in class java.nio.charset.CharsetEncoderin - buffer to decodeout - buffer to populate with decoded result
public boolean isLegalReplacement(byte[] repl)
isLegalReplacement in class java.nio.charset.CharsetEncoder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||