|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.filter.codec.ProtocolDecoderAdapter
public abstract class ProtocolDecoderAdapter
An abstract ProtocolDecoder
implementation for those who don't need
ProtocolDecoder.finishDecode(IoSession, ProtocolDecoderOutput)
nor
ProtocolDecoder.dispose(IoSession)
method.
Constructor Summary | |
---|---|
ProtocolDecoderAdapter()
|
Method Summary | |
---|---|
void |
dispose(IoSession session)
Override this method to dispose all resources related with this decoder. |
void |
finishDecode(IoSession session,
ProtocolDecoderOutput out)
Override this method to deal with the closed connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mina.filter.codec.ProtocolDecoder |
---|
decode |
Constructor Detail |
---|
public ProtocolDecoderAdapter()
Method Detail |
---|
public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws java.lang.Exception
finishDecode
in interface ProtocolDecoder
java.lang.Exception
- if the read data violated protocol specificationpublic void dispose(IoSession session) throws java.lang.Exception
dispose
in interface ProtocolDecoder
java.lang.Exception
- if failed to dispose all resources
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |