public abstract class SkippingState extends java.lang.Object implements DecodingState
canSkip(byte)
returns false.Constructor and Description |
---|
SkippingState()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
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. |
public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out) throws java.lang.Exception
DecodingState
decode
in interface DecodingState
java.lang.Exception
public DecodingState finishDecode(ProtocolDecoderOutput out) throws java.lang.Exception
DecodingState
IoSession
is closed.finishDecode
in interface DecodingState
java.lang.Exception
protected abstract boolean canSkip(byte b)
protected abstract DecodingState finishDecode(int skippedBytes) throws java.lang.Exception
java.lang.Exception
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.