org.red5.server.net.rtsp.codec
Class RTSPDecoder

java.lang.Object
  extended by org.red5.server.net.rtsp.codec.RTSPDecoder
All Implemented Interfaces:
ProtocolDecoder

public class RTSPDecoder
extends Object
implements ProtocolDecoder

Author:
Matteo Merli (matteo.merli@gmail.com)

Nested Class Summary
static class RTSPDecoder.ReadState
          State enumerator that indicates the reached state in the RTSP message decoding process.
 
Constructor Summary
RTSPDecoder()
           
 
Method Summary
 void decode(IoSession session, IoBuffer buffer, ProtocolDecoderOutput out)
          Do the parsing on the incoming stream.
 void dispose(IoSession session)
           
 void finishDecode(IoSession session, ProtocolDecoderOutput out)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTSPDecoder

public RTSPDecoder()
Method Detail

decode

public void decode(IoSession session,
                   IoBuffer buffer,
                   ProtocolDecoderOutput out)
            throws ProtocolDecoderException
Do the parsing on the incoming stream. If the stream does not contain the entire RTSP message wait for other data to arrive, before dispatching the message.

Specified by:
decode in interface ProtocolDecoder
Throws:
ProtocolDecoderException
See Also:
mina.protocol.ProtocolDecoder

dispose

public void dispose(IoSession session)
             throws Exception
Specified by:
dispose in interface ProtocolDecoder
Throws:
Exception

finishDecode

public void finishDecode(IoSession session,
                         ProtocolDecoderOutput out)
                  throws Exception

Specified by:
finishDecode in interface ProtocolDecoder
Throws:
Exception


Copyright © 2006-2009 The Red5 Project