public abstract class CharsetDecoder extends Object
Modifier | Constructor and Description |
---|---|
protected |
CharsetDecoder(Charset cs,
float averageCharsPerByte,
float maxCharsPerByte) |
Modifier and Type | Method and Description |
---|---|
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() |
protected CharsetDecoder(Charset cs, float averageCharsPerByte, float maxCharsPerByte)
public final float averageCharsPerByte()
public final CharBuffer decode(ByteBuffer in) throws CharacterCodingException
CharacterCodingException
public final CoderResult decode(ByteBuffer in, CharBuffer out, boolean endOfInput)
protected abstract CoderResult decodeLoop(ByteBuffer in, CharBuffer out)
public Charset detectedCharset()
public final CoderResult flush(CharBuffer out)
protected CoderResult implFlush(CharBuffer out)
public final CharsetDecoder onMalformedInput(CodingErrorAction newAction)
protected void implOnMalformedInput(CodingErrorAction newAction)
protected void implOnUnmappableCharacter(CodingErrorAction newAction)
protected void implReplaceWith(String newReplacement)
protected void implReset()
public boolean isAutoDetecting()
public boolean isCharsetDetected()
public CodingErrorAction malformedInputAction()
public final float maxCharsPerByte()
public final CharsetDecoder onUnmappableCharacter(CodingErrorAction newAction)
public final String replacement()
public final CharsetDecoder replaceWith(String newReplacement)
public final CharsetDecoder reset()
public CodingErrorAction unmappableCharacterAction()