org.apache.mina.filter.codec.statemachine
Class CrLfDecodingState
java.lang.Object
org.apache.mina.filter.codec.statemachine.CrLfDecodingState
- All Implemented Interfaces:
- DecodingState
public abstract class CrLfDecodingState
- extends Object
- implements DecodingState
Decodes a single CRLF
.
If it is found, the bytes are consumed and Boolean.TRUE
is provided as the product. Otherwise, read bytes are pushed back
to the stream, and Boolean.FALSE
is provided as the
product.
Note that if we find a CR but do not find a following LF, we raise
an error.
- Version:
- $Rev: 601994 $, $Date: 2007-12-07 05:58:00 +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 |
CrLfDecodingState
public CrLfDecodingState()
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(boolean foundCRLF,
ProtocolDecoderOutput out)
throws Exception
- Throws:
Exception
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.