public enum StreamType extends java.lang.Enum<StreamType>
| Enum Constant and Description |
|---|
Application
Application stream.
|
Audio
Audio stream.
|
Message
Message stream.
|
Text
Text stream.
|
Video
Video stream.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(StreamType type)
Get description of carrier stream type.
|
java.lang.String |
toString()
Get description of current carrier stream type.
|
int |
value()
Get type value of current stream type.
|
static StreamType |
valueOf(int type)
Get carrier stream type from type value.
|
static StreamType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StreamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamType Audio
public static final StreamType Video
public static final StreamType Text
public static final StreamType Application
public static final StreamType Message
public static StreamType[] values()
for (StreamType c : StreamType.values()) System.out.println(c);
public static StreamType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static StreamType valueOf(int type)
type - The type valuejava.lang.IllegalArgumentExceptionpublic int value()
public static java.lang.String format(StreamType type)
type - The carrier stream typepublic java.lang.String toString()
toString in class java.lang.Enum<StreamType>