org.littleshoot.util.mina
Class StateMachineProtocolDecoder

java.lang.Object
  extended by org.littleshoot.util.mina.StateMachineProtocolDecoder
All Implemented Interfaces:
org.littleshoot.mina.filter.codec.ProtocolDecoder

public class StateMachineProtocolDecoder
extends Object
implements org.littleshoot.mina.filter.codec.ProtocolDecoder

Top level decoder for state machine decoders.


Constructor Summary
StateMachineProtocolDecoder(DecodingStateMachine stateMachine)
          Creates a new top-level state machine decoder.
 
Method Summary
 void decode(org.littleshoot.mina.common.IoSession session, org.littleshoot.mina.common.ByteBuffer in, org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
           
 void dispose(org.littleshoot.mina.common.IoSession session)
           
 void finishDecode(org.littleshoot.mina.common.IoSession session, 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

StateMachineProtocolDecoder

public StateMachineProtocolDecoder(DecodingStateMachine stateMachine)
Creates a new top-level state machine decoder.

Parameters:
stateMachine - The state machine.
Method Detail

decode

public void decode(org.littleshoot.mina.common.IoSession session,
                   org.littleshoot.mina.common.ByteBuffer in,
                   org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
            throws Exception
Specified by:
decode in interface org.littleshoot.mina.filter.codec.ProtocolDecoder
Throws:
Exception

dispose

public void dispose(org.littleshoot.mina.common.IoSession session)
             throws Exception
Specified by:
dispose in interface org.littleshoot.mina.filter.codec.ProtocolDecoder
Throws:
Exception

finishDecode

public void finishDecode(org.littleshoot.mina.common.IoSession session,
                         org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
                  throws Exception
Specified by:
finishDecode in interface org.littleshoot.mina.filter.codec.ProtocolDecoder
Throws:
Exception


Copyright © 2013 LittleShoot. All Rights Reserved.