|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.filter.codec.statemachine.FixedLengthDecodingState
public abstract class FixedLengthDecodingState
A DecodingState
which consumes all received bytes until a configured
number of read bytes has been reached. Please note that this state can
produce the buffer with less data if the associated session has been
closed unexpectedly.
Constructor Summary | |
---|---|
FixedLengthDecodingState(int length)
Constructs with a known decode length. |
Method Summary | |
---|---|
DecodingState |
decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state. |
protected abstract DecodingState |
finishDecode(IoBuffer readData,
ProtocolDecoderOutput out)
|
DecodingState |
finishDecode(ProtocolDecoderOutput out)
Invoked when the associated IoSession is closed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedLengthDecodingState(int length)
length
- The decode lengthMethod Detail |
---|
public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out) throws Exception
DecodingState
decode
in interface DecodingState
Exception
public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception
DecodingState
IoSession
is closed.
finishDecode
in interface DecodingState
Exception
protected abstract DecodingState finishDecode(IoBuffer readData, ProtocolDecoderOutput out) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |