public enum TimeStampFormat extends java.lang.Enum<TimeStampFormat>
Enum Constant and Description |
---|
MPEG
absolute time, 32 bit sized, using MPEG frames as units
|
MS
absolute time, 32 bit sized, using milliseconds as units
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
gets the description of the time stamp format.
|
int |
getValue()
the integral value of the time stamp format.
|
java.lang.String |
toString()
gets a string representation of the time stamp format enum.
|
static TimeStampFormat |
valueOf(byte timeStampFormat)
converts an integral value to its corresponding time stamp format enum where 1 == MPEG frames and 2 = milliseconds.
|
static TimeStampFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeStampFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeStampFormat MPEG
public static final TimeStampFormat MS
public static TimeStampFormat[] values()
for (TimeStampFormat c : TimeStampFormat.values()) System.out.println(c);
public static TimeStampFormat 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 int getValue()
public java.lang.String getDescription()
public static TimeStampFormat valueOf(byte timeStampFormat) throws java.lang.IllegalArgumentException
timeStampFormat
- integral value to be converted to a time stamp format enum.java.lang.IllegalArgumentException
- if the value is not a valid time stamp format.public java.lang.String toString()
toString
in class java.lang.Enum<TimeStampFormat>