public class LineOrientedDecoder
extends org.apache.mina.filter.codec.CumulativeProtocolDecoder
LineOrientedDecoder class.
| Constructor and Description |
|---|
LineOrientedDecoder(Charset charset)
Constructor for LineOrientedDecoder.
|
| Modifier and Type | Method and 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()
getCharset
|
protected Object |
parseCommand(org.apache.mina.core.buffer.IoBuffer in)
parseCommand
|
void |
setCharset(Charset charset)
setCharset
|
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
doDecode in class org.apache.mina.filter.codec.CumulativeProtocolDecoderExceptionprotected Object parseCommand(org.apache.mina.core.buffer.IoBuffer in) throws CharacterCodingException
parseCommand
in - a IoBuffer object.Object object.CharacterCodingException - if any.public void setCharset(Charset charset)
setCharset
charset - a Charset object.Copyright © 2020. All rights reserved.