Class LineOrientedDecoder
- java.lang.Object
-
- org.apache.mina.filter.codec.ProtocolDecoderAdapter
-
- org.apache.mina.filter.codec.CumulativeProtocolDecoder
-
- org.opennms.netmgt.provision.support.codec.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 Summary
Constructors Constructor Description LineOrientedDecoder(Charset charset)
Constructor for LineOrientedDecoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
Charset
getCharset()
getCharsetprotected Object
parseCommand(org.apache.mina.core.buffer.IoBuffer in)
parseCommandvoid
setCharset(Charset charset)
setCharset
-
-
-
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 classorg.apache.mina.filter.codec.CumulativeProtocolDecoder
- Throws:
Exception
-
parseCommand
protected Object parseCommand(org.apache.mina.core.buffer.IoBuffer in) throws CharacterCodingException
parseCommand
- Parameters:
in
- aIoBuffer
object.- Returns:
- a
Object
object. - Throws:
CharacterCodingException
- if any.
-
setCharset
public void setCharset(Charset charset)
setCharset
- Parameters:
charset
- aCharset
object.
-
-