public class IoBufferDecoder.DecodingContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
contentLength
Holds the current content length of decoded data if in
content-length mode.
|
private IoBuffer |
decodedBuffer
The buffered data.
|
private IoBuffer |
delimiter
The delimiter in use.
|
private int |
matchCount
The currently matched bytes of the delimiter.
|
| Constructor and Description |
|---|
DecodingContext() |
| Modifier and Type | Method and Description |
|---|---|
int |
getContentLength() |
IoBuffer |
getDecodedBuffer() |
IoBuffer |
getDelimiter() |
int |
getMatchCount() |
void |
reset()
Resets the decoding state.
|
void |
setContentLength(int contentLength) |
void |
setDecodedBuffer(IoBuffer decodedBuffer) |
void |
setDelimiter(IoBuffer delimiter) |
void |
setMatchCount(int matchCount) |
private IoBuffer decodedBuffer
private IoBuffer delimiter
private int matchCount
private int contentLength
public void reset()
public int getContentLength()
public void setContentLength(int contentLength)
public int getMatchCount()
public void setMatchCount(int matchCount)
public IoBuffer getDecodedBuffer()
public void setDecodedBuffer(IoBuffer decodedBuffer)
public IoBuffer getDelimiter()
public void setDelimiter(IoBuffer delimiter)