org.opennms.netmgt.provision.support.codec
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
- Author:
- Donald Desloge
|
Method Summary |
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()
|
protected Object |
parseCommand(org.apache.mina.core.buffer.IoBuffer in)
|
void |
setCharset(Charset charset)
|
| Methods inherited from class org.apache.mina.filter.codec.CumulativeProtocolDecoder |
decode, dispose |
| Methods inherited from class org.apache.mina.filter.codec.ProtocolDecoderAdapter |
finishDecode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineOrientedDecoder
public LineOrientedDecoder(Charset charset)
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)
throws CharacterCodingException
- Throws:
CharacterCodingException
setCharset
public void setCharset(Charset charset)
getCharset
public Charset getCharset()
Copyright © 2009. All Rights Reserved.