java.nio.charset
public abstract class CharsetDecoder extends Object
Since: 1.4
Constructor Summary | |
---|---|
protected | CharsetDecoder(Charset cs, float averageCharsPerByte, float maxCharsPerByte) |
Method Summary | |
---|---|
float | averageCharsPerByte() |
Charset | charset() |
CharBuffer | decode(ByteBuffer in) |
CoderResult | decode(ByteBuffer in, CharBuffer out, boolean endOfInput) |
protected abstract CoderResult | decodeLoop(ByteBuffer in, CharBuffer out) |
Charset | detectedCharset() |
CoderResult | flush(CharBuffer out) |
protected CoderResult | implFlush(CharBuffer out) |
protected void | implOnMalformedInput(CodingErrorAction newAction) |
protected void | implOnUnmappableCharacter(CodingErrorAction newAction) |
protected void | implReplaceWith(String newReplacement) |
protected void | implReset() |
boolean | isAutoDetecting() |
boolean | isCharsetDetected() |
CodingErrorAction | malformedInputAction() |
float | maxCharsPerByte() |
CharsetDecoder | onMalformedInput(CodingErrorAction newAction) |
CharsetDecoder | onUnmappableCharacter(CodingErrorAction newAction) |
String | replacement() |
CharsetDecoder | replaceWith(String newReplacement) |
CharsetDecoder | reset() |
CodingErrorAction | unmappableCharacterAction() |