|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<MP123Header.Layer>
fi.helsinki.cs.ohtu.mpeg2.audio.mpa.MP123Header.Layer
public static enum MP123Header.Layer
Represents the MPEG-1 audio layer.
| Enum Constant Summary | |
|---|---|
LAYER_1
MPEG-1 Layer I |
|
LAYER_2
MPEG-1 Layer II |
|
LAYER_3
MPEG-1 Layer III |
|
| Field Summary | |
|---|---|
private int |
layer
The MPEG-1 audio layer. |
| Method Summary | |
|---|---|
static MP123Header.Layer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MP123Header.Layer[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
writeTo(BitOutputStream stream)
Encodes this Layer to the given bit stream. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MP123Header.Layer LAYER_1
public static final MP123Header.Layer LAYER_2
public static final MP123Header.Layer LAYER_3
| Field Detail |
|---|
private final int layer
| Method Detail |
|---|
public static MP123Header.Layer[] values()
for (MP123Header.Layer c : MP123Header.Layer.values()) System.out.println(c);
public static MP123Header.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 name
java.lang.NullPointerException - if the argument is null
public void writeTo(BitOutputStream stream)
throws java.io.IOException
Layer to the given bit stream.
stream - the stream to encode this
Layer to
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||