Class LineOrientedDecoder

  • All Implemented Interfaces:
    org.apache.mina.filter.codec.ProtocolDecoder
    Direct Known Subclasses:
    HttpStatusResponseDecoder

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

    LineOrientedDecoder class.

    Version:
    $Id: $
    Author:
    Donald Desloge
    • Constructor Detail

      • LineOrientedDecoder

        public LineOrientedDecoder​(Charset charset)

        Constructor for LineOrientedDecoder.

        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
      • setCharset

        public void setCharset​(Charset charset)

        setCharset

        Parameters:
        charset - a Charset object.
      • getCharset

        public Charset getCharset()

        getCharset

        Returns:
        a Charset object.