Class IoBufferDecoder.DecodingContext
java.lang.Object
org.apache.mina.proxy.utils.IoBufferDecoder.DecodingContext
- Enclosing class:
IoBufferDecoder
The class holding the decoding context.
- Since:
- MINA 2.0.0-M3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidreset()Resets the decoding state.voidsetContentLength(int contentLength) Sets the content-lengthvoidsetDecodedBuffer(IoBuffer decodedBuffer) Sets the decoded data buffervoidsetDelimiter(IoBuffer delimiter) Sets the delimitervoidsetMatchCount(int matchCount) Sets the match count
-
Field Details
-
decodedBuffer
The buffered data. -
delimiter
The delimiter in use. Set if delimiter mode is in use. -
matchCount
private int matchCountThe number of matched delimiters. -
contentLength
private int contentLengthHolds the current content length of decoded data if in content-length mode.
-
-
Constructor Details
-
DecodingContext
public DecodingContext()
-
-
Method Details
-
reset
public void reset()Resets the decoding state. -
getContentLength
public int getContentLength()- Returns:
- The current content length of decoded data if in content-length mode.
-
setContentLength
public void setContentLength(int contentLength) Sets the content-length- Parameters:
contentLength- current content length of decoded data
-
getMatchCount
public int getMatchCount()- Returns:
- The number of matched delimiters.
-
setMatchCount
public void setMatchCount(int matchCount) Sets the match count- Parameters:
matchCount- The number of matched delimiters.
-
getDecodedBuffer
- Returns:
- The decoded data
-
setDecodedBuffer
Sets the decoded data buffer- Parameters:
decodedBuffer- The decoded data
-
getDelimiter
- Returns:
- The delimiter
-
setDelimiter
Sets the delimiter- Parameters:
delimiter- The delimiter
-