|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.filter.codec.textline.TextLineDecoder
org.apache.mina.example.tapedeck.CommandDecoder
public class CommandDecoder
MINA ProtocolDecoder which decodes bytes into Command
objects.
| Constructor Summary | |
|---|---|
CommandDecoder()
|
|
| Method Summary | |
|---|---|
void |
decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects. |
| Methods inherited from class org.apache.mina.filter.codec.textline.TextLineDecoder |
|---|
dispose, finishDecode, getBufferLength, getMaxLineLength, setBufferLength, setMaxLineLength, writeText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandDecoder()
| Method Detail |
|---|
public void decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
throws java.lang.Exception
TextLineDecoderProtocolDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput.
decode in interface ProtocolDecoderdecode in class TextLineDecoderjava.lang.Exception - if the read data violated protocol specification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||