Package | Description |
---|---|
org.apache.mina.filter.codec.statemachine |
Modifier and Type | Class | 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 | Description |
---|---|---|
DecodingState |
ConsumeToCrLfDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
|
DecodingState |
ConsumeToDynamicTerminatorDecodingState.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 |
ConsumeToTerminatorDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
Invoked when data is available for this state.
|
DecodingState |
CrLfDecodingState.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 |
DecodingStateMachine.decode(IoBuffer in,
ProtocolDecoderOutput out) |
Invoked when data is available for this state.
|
DecodingState |
FixedLengthDecodingState.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 |
ShortIntegerDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
Invoked when data is available for this state.
|
DecodingState |
SingleByteDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
|
DecodingState |
SkippingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
Invoked when data is available for this state.
|
protected abstract DecodingState |
ConsumeToCrLfDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out) |
Invoked when this state has reached a
CRLF . |
DecodingState |
ConsumeToCrLfDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
ConsumeToDynamicTerminatorDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out) |
Invoked when this state has reached the terminator byte.
|
DecodingState |
ConsumeToDynamicTerminatorDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
ConsumeToEndOfSessionDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out) |
Invoked when this state has consumed all bytes until the session is
closed.
|
DecodingState |
ConsumeToEndOfSessionDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
ConsumeToTerminatorDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out) |
Invoked when this state has reached the terminator byte.
|
DecodingState |
ConsumeToTerminatorDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
CrLfDecodingState.finishDecode(boolean foundCRLF,
ProtocolDecoderOutput out) |
Invoked when this state has found a
CRLF . |
DecodingState |
CrLfDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
DecodingState |
DecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
DecodingStateMachine.finishDecode(List<Object> childProducts,
ProtocolDecoderOutput out) |
Called once the state machine has reached its end.
|
DecodingState |
DecodingStateMachine.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
FixedLengthDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out) |
Invoked when this state has consumed the configured number of bytes.
|
DecodingState |
FixedLengthDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
IntegerDecodingState.finishDecode(int value,
ProtocolDecoderOutput out) |
Invoked when this state has consumed a complete
int . |
DecodingState |
IntegerDecodingState.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 . |
DecodingState |
ShortIntegerDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
SingleByteDecodingState.finishDecode(byte b,
ProtocolDecoderOutput out) |
Invoked when this state has consumed a complete
byte . |
DecodingState |
SingleByteDecodingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
SkippingState.finishDecode(int skippedBytes) |
Invoked when this state cannot skip any more bytes.
|
DecodingState |
SkippingState.finishDecode(ProtocolDecoderOutput out) |
Invoked when the associated
IoSession is closed. |
protected abstract DecodingState |
DecodingStateMachine.init() |
Invoked to initialize this state machine.
|
Constructor | Description |
---|---|
DecodingStateProtocolDecoder(DecodingState state) |
Creates a new instance using the specified
DecodingState
instance. |
Copyright © 2004–2018 Apache MINA Project. All rights reserved.