org.red5.server.api.stream
Enum StreamState
java.lang.Object
java.lang.Enum<StreamState>
org.red5.server.api.stream.StreamState
- All Implemented Interfaces:
- Serializable, Comparable<StreamState>
public enum StreamState
- extends Enum<StreamState>
Represents all the states that a stream may be in at a requested point in time.
- Author:
- Paul Gregoire ([email protected])
Method Summary |
static StreamState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StreamState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
INIT
public static final StreamState INIT
UNINIT
public static final StreamState UNINIT
OPEN
public static final StreamState OPEN
CLOSED
public static final StreamState CLOSED
STARTED
public static final StreamState STARTED
STOPPED
public static final StreamState STOPPED
PLAYING
public static final StreamState PLAYING
PAUSED
public static final StreamState PAUSED
RESUMED
public static final StreamState RESUMED
END
public static final StreamState END
SEEK
public static final StreamState SEEK
values
public static StreamState[] 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 (StreamState c : StreamState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static StreamState 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-2012 The Red5 Project