Class TcpLineDecoder
- java.lang.Object
-
- org.apache.mina.filter.codec.ProtocolDecoderAdapter
-
- org.apache.mina.filter.codec.CumulativeProtocolDecoder
-
- org.opennms.netmgt.provision.support.codec.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
NO_MESSAGES_RECEIVED
-
Constructor Summary
Constructors Constructor Description TcpLineDecoder(Charset charset)
Constructor for TcpLineDecoder.
-
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)
void
finishDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
Charset
getCharset()
getCharsetprotected Object
parseCommand(org.apache.mina.core.buffer.IoBuffer in)
parseCommand
-
-
-
Field Detail
-
NO_MESSAGES_RECEIVED
public static final String NO_MESSAGES_RECEIVED
- See Also:
- Constant Field Values
-
-
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)
parseCommand
- Parameters:
in
- aIoBuffer
object.- Returns:
- a
Object
object.
-
finishDecode
public void finishDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
- Specified by:
finishDecode
in interfaceorg.apache.mina.filter.codec.ProtocolDecoder
- Overrides:
finishDecode
in classorg.apache.mina.filter.codec.ProtocolDecoderAdapter
-
-