public class NettyDecoder extends ProtocolDecoderAdapter
ProtocolDecoder
that decodes byte buffers into
Netty2 Message
s using specified MessageRecognizer
s.Constructor and Description |
---|
NettyDecoder(net.gleamynode.netty2.MessageRecognizer recognizer)
Creates a new instance with the specified
MessageRecognizer . |
Modifier and Type | Method and Description |
---|---|
void |
decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
dispose, finishDecode
public NettyDecoder(net.gleamynode.netty2.MessageRecognizer recognizer)
MessageRecognizer
.public void decode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out) throws java.lang.Exception
ProtocolDecoder
ProtocolDecoder.decode(IoSession, ByteBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput
.java.lang.Exception
- if the read data violated protocol specificationCopyright © 2004-2019 Apache MINA Project. All Rights Reserved.