public enum MPEGVersion extends java.lang.Enum<MPEGVersion>
MPEGFrameHeader
,
Moving Picture Experts GroupEnum Constant and Description |
---|
MPEG_1
MPEG version 1
|
MPEG_2
MPEG version 2
|
MPEG_25
MPEG version 2.5 - not an official standard
|
MPEG_RESERVED
reserved for future use
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
gets the description of the MPEG version.
|
java.lang.String |
getISOStandard()
gets the ISO standard describing the MPEG version.
|
java.lang.String |
toString()
gets a string representation of the MPEG version enum.
|
static MPEGVersion |
valueOf(int mpegVersion)
converts an integral value to its corresponding MPEG version enum.
|
static MPEGVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MPEGVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MPEGVersion MPEG_25
public static final MPEGVersion MPEG_RESERVED
public static final MPEGVersion MPEG_2
public static final MPEGVersion MPEG_1
public static MPEGVersion[] values()
for (MPEGVersion c : MPEGVersion.values()) System.out.println(c);
public static MPEGVersion 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 java.lang.String getDescription()
public java.lang.String getISOStandard()
public static MPEGVersion valueOf(int mpegVersion) throws java.lang.IllegalArgumentException
mpegVersion
- integral value to be converted to an MPEG version enum.java.lang.IllegalArgumentException
- if the value is not a valid MPEG version.public java.lang.String toString()
toString
in class java.lang.Enum<MPEGVersion>