Class TextLineDecoder.Context
- java.lang.Object
-
- org.apache.mina.filter.codec.textline.TextLineDecoder.Context
-
- Enclosing class:
- TextLineDecoder
private class TextLineDecoder.Context extends java.lang.ObjectA 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
Fields Modifier and Type Field Description private IoBufferbufThe temporary buffer containing the decoded lineprivate java.nio.charset.CharsetDecoderdecoderThe decoderprivate intmatchCountThe number of lines found so farprivate intoverflowPositionA counter to signal that the line is too long
-
Constructor Summary
Constructors Modifier Constructor Description privateContext(int bufferLength)Create a new Context object with a default buffer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(IoBuffer in)private voiddiscard(IoBuffer in)IoBuffergetBuffer()java.nio.charset.CharsetDecodergetDecoder()intgetMatchCount()intgetOverflowPosition()voidreset()voidsetMatchCount(int matchCount)
-
-
-
Field Detail
-
decoder
private final java.nio.charset.CharsetDecoder decoder
The decoder
-
buf
private final IoBuffer buf
The temporary buffer containing the decoded line
-
matchCount
private int matchCount
The number of lines found so far
-
overflowPosition
private int overflowPosition
A counter to signal that the line is too long
-
-
Method Detail
-
getDecoder
public java.nio.charset.CharsetDecoder getDecoder()
-
getBuffer
public IoBuffer getBuffer()
-
getOverflowPosition
public int getOverflowPosition()
-
getMatchCount
public int getMatchCount()
-
setMatchCount
public void setMatchCount(int matchCount)
-
reset
public void reset()
-
append
public void append(IoBuffer in)
-
discard
private void discard(IoBuffer in)
-
-