|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.filter.codec.statemachine.SkippingState
public abstract class SkippingState
Skips data until canSkip(byte)
returns false.
Constructor Summary | |
---|---|
SkippingState()
Creates a new instance. |
Method Summary | |
---|---|
protected abstract boolean |
canSkip(byte b)
|
DecodingState |
decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state. |
protected abstract DecodingState |
finishDecode(int skippedBytes)
|
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 SkippingState()
Method 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 boolean canSkip(byte b)
protected abstract DecodingState finishDecode(int skippedBytes) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |