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 CommandDecoder()
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
session
- The current Sessionin
- the buffer to decodeout
- The ProtocolDecoderOutput
that will receive the decoded messageException
- if the read data violated protocol specificationCopyright © 2004–2016 Apache MINA Project. All rights reserved.