org.jcodec.common
Enum Codec

java.lang.Object
  extended by java.lang.Enum<Codec>
      extended by 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

Enum Constant Summary
AC3
           
ALAW
           
DV
           
H264
           
J2K
           
MP3
           
MPEG2
           
MPEG4
           
PRORES
           
V210
           
VC3
           
 
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.
 
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

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
Method Detail

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.