public enum ChannelMode extends java.lang.Enum<ChannelMode>
MPEGFrameHeader
,
Moving Picture Experts GroupEnum Constant and Description |
---|
DUAL_CHANNEL
Dual Channel Stereo
|
JOINT_STEREO
Joint Stereo
|
SINGLE_CHANNEL
Single channel Mono
|
STEREO
Stereo
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
gets the name of the channel mode.
|
boolean |
isStereo()
gets whether the channel mode is stereo or not.
|
java.lang.String |
toString()
gets a string representation of the channel mode enum.
|
static ChannelMode |
valueOf(int mode)
converts an integral value to its corresponding channel mode enum.
|
static ChannelMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelMode STEREO
public static final ChannelMode JOINT_STEREO
public static final ChannelMode DUAL_CHANNEL
public static final ChannelMode SINGLE_CHANNEL
public static ChannelMode[] values()
for (ChannelMode c : ChannelMode.values()) System.out.println(c);
public static ChannelMode 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 boolean isStereo()
public static ChannelMode valueOf(int mode) throws java.lang.IllegalArgumentException
mode
- integral value to be converted to an channel mode enum.java.lang.IllegalArgumentException
- if the value is not a valid channel mode.public java.lang.String toString()
toString
in class java.lang.Enum<ChannelMode>