org.apache.mina.example.tapedeck
Class CommandDecoder

java.lang.Object
  extended by org.apache.mina.filter.codec.textline.TextLineDecoder
      extended by org.apache.mina.example.tapedeck.CommandDecoder
All Implemented Interfaces:
ProtocolDecoder

public class CommandDecoder
extends TextLineDecoder

MINA ProtocolDecoder which decodes bytes into Command objects.

Author:
Apache MINA Project

Constructor Summary
CommandDecoder()
           
 
Method Summary
 void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
           
 
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

CommandDecoder

public CommandDecoder()
Method Detail

decode

public void decode(IoSession session,
                   IoBuffer in,
                   ProtocolDecoderOutput out)
            throws java.lang.Exception
Specified by:
decode in interface ProtocolDecoder
Overrides:
decode in class TextLineDecoder
Throws:
java.lang.Exception


Copyright © 2004-2012 Apache MINA Project. All Rights Reserved.