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.CumulativeProtocolDecoderLineOrientedDecoder class.
- Version:
- $Id: $
- Author:
- Donald Desloge
-
-
Constructor Summary
Constructors Constructor Description LineOrientedDecoder(java.nio.charset.Charset charset)Constructor for LineOrientedDecoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)java.nio.charset.CharsetgetCharset()getCharsetprotected java.lang.ObjectparseCommand(org.apache.mina.core.buffer.IoBuffer in)parseCommandvoidsetCharset(java.nio.charset.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 java.lang.Exception- Specified by:
doDecodein classorg.apache.mina.filter.codec.CumulativeProtocolDecoder- Throws:
java.lang.Exception
-
parseCommand
protected java.lang.Object parseCommand(org.apache.mina.core.buffer.IoBuffer in) throws java.nio.charset.CharacterCodingExceptionparseCommand
- Parameters:
in- aIoBufferobject.- Returns:
- a
Objectobject. - Throws:
java.nio.charset.CharacterCodingException- if any.
-
setCharset
public void setCharset(java.nio.charset.Charset charset)
setCharset
- Parameters:
charset- aCharsetobject.
-
getCharset
public java.nio.charset.Charset getCharset()
getCharset
- Returns:
- a
Charsetobject.
-
-