Class TextLineDecoder.Context
java.lang.Object
org.apache.mina.filter.codec.textline.TextLineDecoder.Context
- Enclosing class:
TextLineDecoder
A Context used during the decoding of a lin. It stores the decoder,
the temporary buffer containing the decoded line, and other status flags.
- Version:
- $Rev$, $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IoBufferThe temporary buffer containing the decoded lineprivate final CharsetDecoderThe decoderprivate intThe number of lines found so farprivate intA counter to signal that the line is too long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateContext(int bufferLength) Create a new Context object with a default buffer -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidintintvoidreset()voidsetMatchCount(int matchCount)
-
Field Details
-
decoder
The decoder -
buf
The temporary buffer containing the decoded line -
matchCount
private int matchCountThe number of lines found so far -
overflowPosition
private int overflowPositionA counter to signal that the line is too long
-
-
Constructor Details
-
Context
private Context(int bufferLength) Create a new Context object with a default buffer
-
-
Method Details
-
getDecoder
-
getBuffer
-
getOverflowPosition
public int getOverflowPosition() -
getMatchCount
public int getMatchCount() -
setMatchCount
public void setMatchCount(int matchCount) -
reset
public void reset() -
append
-
discard
-