com.ibm.icu.charset
public abstract class CharsetEncoderICU extends CharsetEncoder
UNKNOWN: ICU 3.6 This API might change or be removed in a future release.
Method Summary | |
---|---|
boolean | canEncode(int codepoint)
Ascertains if a given Unicode code point (32bit value for handling surrogates)
can be converted to the target encoding. |
protected CoderResult | encodeLoop(CharBuffer in, ByteBuffer out)
Encodes one or more chars. |
protected CoderResult | implFlush(ByteBuffer 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 from Unicode mode of converter |
boolean | isLegalReplacement(byte[] repl)
Overrides super class method |
while(ior String src = new String(mySource); int i,codepoint; boolean passed = false; while(i0xfff)? 2:1; if(!(CharsetEncoderICU) myConv).canEncode(codepoint)){ passed = false; } } Parameters: codepoint Unicode code point as int value
Returns: true if a character can be converted
UNKNOWN: ICU 3.6 This API might change or be removed in a future release.
Parameters: in buffer to decode out buffer to populate with decoded result
Returns: result of decoding action. Returns CoderResult.UNDERFLOW if the decoding action succeeds or more input is needed for completing the decoding action.
UNKNOWN: ICU 3.6
Parameters: out action to be taken
Returns: result of flushing action and completes the decoding all input. Returns CoderResult.UNDERFLOW if the action succeeds.
UNKNOWN: ICU 3.6
Parameters: newAction action to be taken
Throws: IllegalArgumentException
UNKNOWN: ICU 3.6
Parameters: newAction action to be taken
Throws: IllegalArgumentException
UNKNOWN: ICU 3.6
UNKNOWN: ICU 3.6
UNKNOWN: ICU 3.6