org.stanwood.media.store.mp4
Enum MP4ArtworkType

java.lang.Object
  extended by java.lang.Enum<MP4ArtworkType>
      extended by org.stanwood.media.store.mp4.MP4ArtworkType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MP4ArtworkType>

public enum MP4ArtworkType
extends java.lang.Enum<MP4ArtworkType>

The types of artwork that can be stored in a MP4 file


Enum Constant Summary
MP4_ART_BMP
          Windows BMP type
MP4_ART_GIF
          Gif type
MP4_ART_JPEG
          JPEG type
MP4_ART_PNG
          PNG type
MP4_ART_UNDEFINED
          Unknown type
 
Method Summary
 java.lang.String getExtension()
          Get the file extension
static MP4ArtworkType getForValue(int value)
          Used to get a type from the value stored in a atom
 int getIntValue()
          Used to get the value of the type as stored in the atom
static MP4ArtworkType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MP4ArtworkType[] 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

MP4_ART_UNDEFINED

public static final MP4ArtworkType MP4_ART_UNDEFINED
Unknown type


MP4_ART_BMP

public static final MP4ArtworkType MP4_ART_BMP
Windows BMP type


MP4_ART_GIF

public static final MP4ArtworkType MP4_ART_GIF
Gif type


MP4_ART_JPEG

public static final MP4ArtworkType MP4_ART_JPEG
JPEG type


MP4_ART_PNG

public static final MP4ArtworkType MP4_ART_PNG
PNG type

Method Detail

values

public static MP4ArtworkType[] 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 (MP4ArtworkType c : MP4ArtworkType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MP4ArtworkType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getIntValue

public int getIntValue()
Used to get the value of the type as stored in the atom

Returns:
the value of the type as stored in the atom

getForValue

public static MP4ArtworkType getForValue(int value)
Used to get a type from the value stored in a atom

Parameters:
value - the value stored in a atom
Returns:
The type

getExtension

public java.lang.String getExtension()
Get the file extension

Returns:
the file extension