public class CommandDecoder extends TextLineDecoder
ProtocolDecoder
which decodes bytes into Command
objects.Constructor and Description |
---|
CommandDecoder() |
Modifier and Type | Method and Description |
---|---|
void |
decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
dispose, finishDecode, getBufferLength, getMaxLineLength, setBufferLength, setMaxLineLength, writeText
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception
TextLineDecoder
ProtocolDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput
.decode
in interface ProtocolDecoder
decode
in class TextLineDecoder
Exception
- if the read data violated protocol specificationCopyright © 2004–2014 Apache MINA Project. All rights reserved.