org.apache.mina.filter.codec.statemachine
Interface DecodingState

All Known Implementing Classes:
ConsumeToCrLfDecodingState, ConsumeToDynamicTerminatorDecodingState, ConsumeToEndOfSessionDecodingState, ConsumeToLinearWhitespaceDecodingState, ConsumeToTerminatorDecodingState, CrLfDecodingState, DecodingStateMachine, FixedLengthDecodingState, IntegerDecodingState, LinearWhitespaceSkippingState, ShortIntegerDecodingState, SingleByteDecodingState, SkippingState

public interface DecodingState

Version:
$Rev: 601994 $, $Date: 2007-12-07 05:58:00 +0100 (Fri, 07 Dec 2007) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 DecodingState decode(IoBuffer in, ProtocolDecoderOutput out)
          Invoked when data is available for this state.
 DecodingState finishDecode(ProtocolDecoderOutput out)
          Invoked when the associated IoSession is closed.
 

Method Detail

decode

DecodingState decode(IoBuffer in,
                     ProtocolDecoderOutput out)
                     throws Exception
Invoked when data is available for this state.

Throws:
Exception

finishDecode

DecodingState finishDecode(ProtocolDecoderOutput out)
                           throws Exception
Invoked when the associated IoSession is closed.

Throws:
Exception


Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.