org.red5.server.net.mrtmp.codec
Class MRTMPProtocolDecoder

java.lang.Object
  extended by org.red5.server.net.mrtmp.codec.MRTMPProtocolDecoder
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolDecoder

public class MRTMPProtocolDecoder
extends Object
implements org.apache.mina.filter.codec.ProtocolDecoder

Author:
Steven Gong (steven.gong@gmail.com)

Constructor Summary
MRTMPProtocolDecoder()
           
 
Method Summary
 void decode(org.apache.mina.common.IoSession session, org.apache.mina.common.ByteBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
           
 MRTMPPacket.Body decodeBody(org.apache.mina.common.ByteBuffer buffer, MRTMPPacket.Header header)
           
 MRTMPPacket.Header decodeHeader(org.apache.mina.common.ByteBuffer buffer)
           
 void dispose(org.apache.mina.common.IoSession session)
           
 void finishDecode(org.apache.mina.common.IoSession session, org.apache.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

MRTMPProtocolDecoder

public MRTMPProtocolDecoder()
Method Detail

decode

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

dispose

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

finishDecode

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

decodeHeader

public MRTMPPacket.Header decodeHeader(org.apache.mina.common.ByteBuffer buffer)

decodeBody

public MRTMPPacket.Body decodeBody(org.apache.mina.common.ByteBuffer buffer,
                                   MRTMPPacket.Header header)


Copyright © 2006-2007 the Red5 project.