public enum Layer extends java.lang.Enum<Layer>
MPEGFrameHeader
,
Moving Picture Experts GroupEnum Constant and Description |
---|
I
layer I
|
II
layer II
|
III
layer III
|
RESERVED
reserved for future use
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
gets the name of the MPEG layer.
|
java.lang.String |
toString()
gets a string representation of the MPEG layer enum.
|
static Layer |
valueOf(int layer)
converts an integral value to its corresponding MPEG layer enum.
|
static Layer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Layer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Layer RESERVED
public static final Layer III
public static final Layer II
public static final Layer I
public static Layer[] values()
for (Layer c : Layer.values()) System.out.println(c);
public static Layer 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 getName()
public static Layer valueOf(int layer) throws java.lang.IllegalArgumentException
layer
- integral value to be converted to an MPEG layer enum.java.lang.IllegalArgumentException
- if the value is not a valid MPEG layer.public java.lang.String toString()
toString
in class java.lang.Enum<Layer>