Package | Description |
---|---|
org.apache.mina.filter.codec.statemachine |
Modifier and Type | Class and Description |
---|---|
class |
ConsumeToCrLfDecodingState
DecodingState which consumes all bytes until a CRLF
has been encountered. |
class |
ConsumeToDynamicTerminatorDecodingState
DecodingState which consumes all bytes until a fixed (ASCII)
character is reached. |
class |
ConsumeToEndOfSessionDecodingState
DecodingState which consumes all received bytes until the session is
closed. |
class |
ConsumeToLinearWhitespaceDecodingState
DecodingState which consumes all bytes until a space (0x20) or tab
(0x09) character is reached. |
class |
ConsumeToTerminatorDecodingState
DecodingState which consumes all bytes until a fixed (ASCII)
character is reached. |
class |
CrLfDecodingState
DecodingState which decodes a single CRLF . |
class |
DecodingStateMachine
Abstract base class for decoder state machines.
|
class |
FixedLengthDecodingState
DecodingState which consumes all received bytes until a configured
number of read bytes has been reached. |
class |
IntegerDecodingState
DecodingState which decodes int values in big-endian
order (high bytes come first). |
class |
LinearWhitespaceSkippingState
DecodingState which skips space (0x20) and tab (0x09) characters. |
class |
ShortIntegerDecodingState
DecodingState which decodes short values in big-endian
order (high bytes come first). |
class |
SingleByteDecodingState
DecodingState which decodes byte values. |
class |
SkippingState
DecodingState which skips data until SkippingState.canSkip(byte) returns
false. |
Modifier and Type | Method and Description |
---|---|
DecodingState |
CrLfDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ShortIntegerDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
SkippingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
DecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToCrLfDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
DecodingState |
SingleByteDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
DecodingState |
FixedLengthDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToEndOfSessionDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
IntegerDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToDynamicTerminatorDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToTerminatorDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
DecodingStateMachine.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
protected abstract DecodingState |
CrLfDecodingState.finishDecode(boolean foundCRLF,
ProtocolDecoderOutput out)
Invoked when this state has found a
CRLF . |
protected abstract DecodingState |
SingleByteDecodingState.finishDecode(byte b,
ProtocolDecoderOutput out)
Invoked when this state has consumed a complete
byte . |
protected abstract DecodingState |
SkippingState.finishDecode(int skippedBytes)
Invoked when this state cannot skip any more bytes.
|
protected abstract DecodingState |
IntegerDecodingState.finishDecode(int value,
ProtocolDecoderOutput out)
Invoked when this state has consumed a complete
int . |
protected abstract DecodingState |
ConsumeToCrLfDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has reached a
CRLF . |
protected abstract DecodingState |
FixedLengthDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has consumed the configured number of bytes.
|
protected abstract DecodingState |
ConsumeToEndOfSessionDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has consumed all bytes until the session is
closed.
|
protected abstract DecodingState |
ConsumeToDynamicTerminatorDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has reached the terminator byte.
|
protected abstract DecodingState |
ConsumeToTerminatorDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has reached the terminator byte.
|
protected abstract DecodingState |
DecodingStateMachine.finishDecode(java.util.List<java.lang.Object> childProducts,
ProtocolDecoderOutput out)
Called once the state machine has reached its end.
|
DecodingState |
CrLfDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
ShortIntegerDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
SkippingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
DecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
ConsumeToCrLfDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
SingleByteDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
FixedLengthDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
ConsumeToEndOfSessionDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
IntegerDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
ConsumeToDynamicTerminatorDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
ConsumeToTerminatorDecodingState.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
DecodingState |
DecodingStateMachine.finishDecode(ProtocolDecoderOutput out)
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
ShortIntegerDecodingState.finishDecode(short value,
ProtocolDecoderOutput out)
Invoked when this state has consumed a complete
short . |
protected abstract DecodingState |
DecodingStateMachine.init()
Invoked to initialize this state machine.
|
Constructor and Description |
---|
DecodingStateProtocolDecoder(DecodingState state)
Creates a new instance using the specified
DecodingState
instance. |
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.