org.littleshoot.util.mina
Class ConsumeToCrlfDecodingState
java.lang.Object
org.littleshoot.util.mina.ConsumeToCrlfDecodingState
- All Implemented Interfaces:
- DecodingState
public abstract class ConsumeToCrlfDecodingState
- extends Object
- implements DecodingState
A decoder which writes all read bytes in to a known Bytes
context until a CRLF has been encountered.
|
Method Summary |
DecodingState |
decode(org.littleshoot.mina.common.ByteBuffer in,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
Decodes the input for this state. |
protected abstract DecodingState |
finishDecode(org.littleshoot.mina.common.ByteBuffer product,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumeToCrlfDecodingState
public ConsumeToCrlfDecodingState()
decode
public DecodingState decode(org.littleshoot.mina.common.ByteBuffer in,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
- Description copied from interface:
DecodingState
- Decodes the input for this state.
- Specified by:
decode in interface DecodingState
- Parameters:
in - The read data.out - The output to write to.
- Returns:
- The next decoding state.
- Throws:
Exception - If any error occurs.
finishDecode
protected abstract DecodingState finishDecode(org.littleshoot.mina.common.ByteBuffer product,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
- Throws:
Exception
Copyright © 2013 LittleShoot. All Rights Reserved.