public class IoBufferDecoder.DecodingContext extends Object
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)
Sets the content-length
|
void |
setDecodedBuffer(IoBuffer decodedBuffer)
Sets the decoded data buffer
|
void |
setDelimiter(IoBuffer delimiter)
Sets the delimiter
|
void |
setMatchCount(int matchCount)
Sets the match count
|
public void reset()
public int getContentLength()
public void setContentLength(int contentLength)
contentLength
- current content length of decoded datapublic int getMatchCount()
public void setMatchCount(int matchCount)
matchCount
- The number of matched delimiters.public IoBuffer getDecodedBuffer()
public void setDecodedBuffer(IoBuffer decodedBuffer)
decodedBuffer
- The decoded datapublic IoBuffer getDelimiter()
public void setDelimiter(IoBuffer delimiter)
delimiter
- The delimiterCopyright © 2004–2022 Apache MINA Project. All rights reserved.