org.jcodec.common
Enum Codec
java.lang.Object
java.lang.Enum<Codec>
org.jcodec.common.Codec
- All Implemented Interfaces:
- Serializable, Comparable<Codec>
public enum Codec
- extends Enum<Codec>
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
- Author:
- The JCodec project
|
Method Summary |
static Codec |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Codec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
MPEG2
public static final Codec MPEG2
PRORES
public static final Codec PRORES
H264
public static final Codec H264
J2K
public static final Codec J2K
MPEG4
public static final Codec MPEG4
DV
public static final Codec DV
VC3
public static final Codec VC3
V210
public static final Codec V210
ALAW
public static final Codec ALAW
AC3
public static final Codec AC3
MP3
public static final Codec MP3
values
public static Codec[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Codec c : Codec.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Codec valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2013. All Rights Reserved.