|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.filter.codec.netty.NettyDecoder
public class NettyDecoder
A MINA ProtocolDecoder that decodes byte buffers into
Netty2 Message
s using specified MessageRecognizer
s.
Constructor Summary | |
---|---|
NettyDecoder(MessageRecognizer recognizer)
Creates a new instance with the specified MessageRecognizer . |
Method Summary | |
---|---|
void |
decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects. |
void |
dispose(IoSession session)
Releases all resources related with this decoder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NettyDecoder(MessageRecognizer recognizer)
MessageRecognizer
.
Method Detail |
---|
public void decode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out) throws Exception
ProtocolDecoder
ProtocolDecoder.decode(IoSession, ByteBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput
.
decode
in interface ProtocolDecoder
Exception
- if the read data violated protocol specificationpublic void dispose(IoSession session) throws Exception
ProtocolDecoder
dispose
in interface ProtocolDecoder
Exception
- if failed to dispose all resources
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |