final float
| averageCharsPerByte()
| Returns average number of characters produced for each byte of input.
|
---|
final Charset
| charset()
| Returns charset that created this decoder.
|
---|
final CharBuffer
| decode(ByteBuffer in)
| Convenience method that decodes remaining content of single input byte buffer into a newly-allocated character buffer.
|
---|
final CoderResult
| decode(ByteBuffer in, CharBuffer out, boolean endOfInput)
| Decodes multiple possible bytes from input buffer, and writes results to the output buffer.
|
---|
protected abstract CoderResult
| decodeLoop(ByteBuffer in, CharBuffer out)
| Decodes one or more bytes into one or more characters.
|
---|
Charset
| detectedCharset()
| Retrieves charset detected by the decoder (optional operation).
|
---|
final CoderResult
| flush(CharBuffer out)
| Flushes decoder.
|
---|
protected CoderResult
| implFlush(CharBuffer out)
| Flushes decoder.
|
---|
protected void
| implOnMalformedInput(CodingErrorAction newAction)
| Reports a change to decoder's malformed-input action.
|
---|
protected void
| implOnUnmappableCharacter(CodingErrorAction newAction)
| Reports a change to unmappable-character action of decoder.
|
---|
protected void
| implReplaceWith(String newReplacement)
| Reports a change to this decoder's replacement value.
|
---|
protected void
| implReset()
| Resets decoder and clears any charset-specific internal state.
|
---|
Boolean
| isAutoDetecting()
| Tells whether decoder implements an auto-detecting charset.
|
---|
Boolean
| isCharsetDetected()
| Tells whether or not decoder has detected a charset (optional operation).
|
---|
CodingErrorAction
| malformedInputAction()
| Returns decoder's last action for malformed-inputs.
|
---|
final float
| maxCharsPerByte()
| Returns the maximum number of characters produced for each input byte.
|
---|
final CharsetDecoder
| onMalformedInput(CodingErrorAction newAction)
| Changes decoder's action for malformed-input errors.
|
---|
final CharsetDecoder
| onUnmappableCharacter(CodingErrorAction newAction)
| Changes decoder's action for unmappable-character errors.
|
---|
final String
| replacement()
| Returns replacement value of decoder.
|
---|
final CharsetDecoder
| replaceWith(String newReplacement)
| Changes replacement value of decoder.
|
---|
final CharsetDecoder
| reset()
| Resets this decoder, after clearing internal state.
|
---|
CodingErrorAction
| unmappableCharacterAction()
| Returns unmappable-character errors of decoder and returns them.
|
---|