|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.mina.ConsumeToTerminatorDecodingState
public abstract class ConsumeToTerminatorDecodingState
Consumes until a fixed (ASCII) character is reached. This also allows several characters to act as terminators. In this case, the first terminator that is read ends the reading, i.e. it doesn't look for multiple terminators strung together. The terminator is skipped.
| Constructor Summary | |
|---|---|
protected |
ConsumeToTerminatorDecodingState(byte terminator)
Creates a new instance. |
protected |
ConsumeToTerminatorDecodingState(byte terminator1,
byte terminator2)
Creates a new instance. |
| 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(byte foundTerminator,
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 |
| Constructor Detail |
|---|
protected ConsumeToTerminatorDecodingState(byte terminator)
terminator - The terminator.
protected ConsumeToTerminatorDecodingState(byte terminator1,
byte terminator2)
terminator1The - first terminator.terminator2 - The second terminator.| Method Detail |
|---|
public DecodingState decode(org.littleshoot.mina.common.ByteBuffer in,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
DecodingState
decode in interface DecodingStatein - The read data.out - The output to write to.
Exception - If any error occurs.
protected abstract DecodingState finishDecode(byte foundTerminator,
org.littleshoot.mina.common.ByteBuffer product,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||