public class DefaultDecoder extends Decoder
| Modifier and Type | Field and Description |
|---|---|
protected CharsetDecoder |
decoder |
protected boolean |
flushed |
protected CharBuffer |
nextChars |
protected byte[] |
remainingBytes |
protected int |
remainingBytesLength |
currentBuffer, io, nextBuffer| Constructor and Description |
|---|
DefaultDecoder(CharsetDecoder decoder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decode(ByteBuffer b,
char[] chars,
int pos,
int len,
MutableBoolean interrupt,
int min) |
Charset |
getEncoding()
Return the charset of this decoder.
|
void |
transferTo(Decoder newDecoder)
Change charset by transfering the current state of this decoder to the new one.
|
canDecode, close, closeAsync, decode, decode, get, register, setFirstBytes, setFirstBytes, setInputclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseAfterprotected CharsetDecoder decoder
protected boolean flushed
protected byte[] remainingBytes
protected int remainingBytesLength
protected CharBuffer nextChars
public DefaultDecoder(CharsetDecoder decoder)
public void transferTo(Decoder newDecoder)
DecodertransferTo in class Decoderpublic int decode(ByteBuffer b, char[] chars, int pos, int len, MutableBoolean interrupt, int min)
public Charset getEncoding()
DecodergetEncoding in class DecoderCopyright © 2019. All rights reserved.