Class TcpLineDecoder

  • All Implemented Interfaces:
    org.apache.mina.filter.codec.ProtocolDecoder

    public class TcpLineDecoder
    extends org.apache.mina.filter.codec.CumulativeProtocolDecoder

    TcpLineDecoder class.

    Version:
    $Id: $
    Author:
    ranger
    • Constructor Detail

      • TcpLineDecoder

        public TcpLineDecoder​(Charset charset)

        Constructor for TcpLineDecoder.

        Parameters:
        charset - a Charset object.
    • Method Detail

      • doDecode

        protected boolean doDecode​(org.apache.mina.core.session.IoSession session,
                                   org.apache.mina.core.buffer.IoBuffer in,
                                   org.apache.mina.filter.codec.ProtocolDecoderOutput out)
                            throws Exception
        Specified by:
        doDecode in class org.apache.mina.filter.codec.CumulativeProtocolDecoder
        Throws:
        Exception
      • parseCommand

        protected Object parseCommand​(org.apache.mina.core.buffer.IoBuffer in)

        parseCommand

        Parameters:
        in - a IoBuffer object.
        Returns:
        a Object object.
      • getCharset

        public Charset getCharset()

        getCharset

        Returns:
        a Charset object.
      • finishDecode

        public void finishDecode​(org.apache.mina.core.session.IoSession session,
                                 org.apache.mina.filter.codec.ProtocolDecoderOutput out)
        Specified by:
        finishDecode in interface org.apache.mina.filter.codec.ProtocolDecoder
        Overrides:
        finishDecode in class org.apache.mina.filter.codec.ProtocolDecoderAdapter