org.apache.mina.filter.codec.statemachine
Class ConsumeToEndOfSessionDecodingState
java.lang.Object
org.apache.mina.filter.codec.statemachine.ConsumeToEndOfSessionDecodingState
- All Implemented Interfaces:
- DecodingState
public abstract class ConsumeToEndOfSessionDecodingState
- extends Object
- implements DecodingState
A DecodingState
which consumes all received bytes until a configured
number of read bytes has been reached. Please note that this state can
produce the buffer with less data if the associated session has been
closed unexpectedly.
- Version:
- $Rev: 601996 $, $Date: 2007-12-07 06:06:18 +0100 (Fri, 07 Dec 2007) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumeToEndOfSessionDecodingState
public ConsumeToEndOfSessionDecodingState(int maxLength)
decode
public DecodingState decode(IoBuffer in,
ProtocolDecoderOutput out)
throws Exception
- Description copied from interface:
DecodingState
- Invoked when data is available for this state.
- Specified by:
decode
in interface DecodingState
- Throws:
Exception
finishDecode
public DecodingState finishDecode(ProtocolDecoderOutput out)
throws Exception
- Description copied from interface:
DecodingState
- Invoked when the associated
IoSession
is closed.
- Specified by:
finishDecode
in interface DecodingState
- Throws:
Exception
finishDecode
protected abstract DecodingState finishDecode(IoBuffer readData,
ProtocolDecoderOutput out)
throws Exception
- Throws:
Exception
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.