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, writeTextpublic void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws java.lang.Exception
TextLineDecoderProtocolDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput.decode 在接口中 ProtocolDecoderdecode 在类中 TextLineDecodersession - The current Sessionin - the buffer to decodeout - The ProtocolDecoderOutput that will receive the decoded messagejava.lang.Exception - if the read data violated protocol specification