org.red5.server.net.rtsp.codec
Enum RTSPDecoder.ReadState

java.lang.Object
  extended by java.lang.Enum<RTSPDecoder.ReadState>
      extended by org.red5.server.net.rtsp.codec.RTSPDecoder.ReadState
All Implemented Interfaces:
Serializable, Comparable<RTSPDecoder.ReadState>
Enclosing class:
RTSPDecoder

public static enum RTSPDecoder.ReadState
extends Enum<RTSPDecoder.ReadState>

State enumerator that indicates the reached state in the RTSP message decoding process.


Enum Constant Summary
Body
          Reading body (entity)
Command
          Reading command (request or command line)
Dispatch
          Fully formed message
Failed
          Unrecoverable error occurred
Header
          Reading headers
Packet
          Reading interleaved packet
Ready
          Waiting for a command
Sync
          Trying to resync
 
Method Summary
static RTSPDecoder.ReadState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RTSPDecoder.ReadState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Failed

public static final RTSPDecoder.ReadState Failed
Unrecoverable error occurred


Sync

public static final RTSPDecoder.ReadState Sync
Trying to resync


Ready

public static final RTSPDecoder.ReadState Ready
Waiting for a command


Packet

public static final RTSPDecoder.ReadState Packet
Reading interleaved packet


Command

public static final RTSPDecoder.ReadState Command
Reading command (request or command line)


Header

public static final RTSPDecoder.ReadState Header
Reading headers


Body

public static final RTSPDecoder.ReadState Body
Reading body (entity)


Dispatch

public static final RTSPDecoder.ReadState Dispatch
Fully formed message

Method Detail

values

public static RTSPDecoder.ReadState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RTSPDecoder.ReadState c : RTSPDecoder.ReadState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RTSPDecoder.ReadState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2006-2009 The Red5 Project