Class TextLineDecoder.Context

java.lang.Object
org.apache.mina.filter.codec.textline.TextLineDecoder.Context
Enclosing class:
TextLineDecoder

private class TextLineDecoder.Context extends Object
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 Details

    • decoder

      private final 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
  • Constructor Details

    • Context

      private Context(int bufferLength)
      Create a new Context object with a default buffer
  • Method Details

    • getDecoder

      public 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)