public class CommandDecoder extends TextLineDecoder
ProtocolDecoder
which decodes bytes into Command
objects.构造器和说明 |
---|
CommandDecoder() |
限定符和类型 | 方法和说明 |
---|---|
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 java.lang.Exception
TextLineDecoder
ProtocolDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput
.decode
在接口中 ProtocolDecoder
decode
在类中 TextLineDecoder
session
- The current Sessionin
- the buffer to decodeout
- The ProtocolDecoderOutput
that will receive the decoded messagejava.lang.Exception
- if the read data violated protocol specification