magoffin.matt.meta.video
Enum VideoMetadataType

java.lang.Object
  extended by java.lang.Enum<VideoMetadataType>
      extended by magoffin.matt.meta.video.VideoMetadataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VideoMetadataType>

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

Metadata types for video media.

Version:
$Revision: 3 $ $Date: 2008-12-27 08:09:28 +1300 (Sat, 27 Dec 2008) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Enum Constant Summary
AUDIO_FORMAT
          The audio format, such as codec, frequency, bits, etc.
DURATION
          The total length of the video, in milliseconds.
DURATION_TIME
          The total lenght of the video, in HH:MM:SS.F format.
FPS
          The frame rate of the video in frames/second.
HEIGHT
          The height of the video, in pixels.
POSTER
          A poster image from the video, as a MetadataImage.
VIDEO_FORMAT
          The video format, such as codec, quality, etc.
WIDTH
          The width of the video, in pixels.
 
Method Summary
 java.lang.Class<?> getObjectType()
          Get the type of object this metadata represents.
static VideoMetadataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VideoMetadataType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUDIO_FORMAT

public static final VideoMetadataType AUDIO_FORMAT
The audio format, such as codec, frequency, bits, etc.


DURATION

public static final VideoMetadataType DURATION
The total length of the video, in milliseconds.


DURATION_TIME

public static final VideoMetadataType DURATION_TIME
The total lenght of the video, in HH:MM:SS.F format.


FPS

public static final VideoMetadataType FPS
The frame rate of the video in frames/second.


HEIGHT

public static final VideoMetadataType HEIGHT
The height of the video, in pixels.


POSTER

public static final VideoMetadataType POSTER
A poster image from the video, as a MetadataImage.


VIDEO_FORMAT

public static final VideoMetadataType VIDEO_FORMAT
The video format, such as codec, quality, etc.


WIDTH

public static final VideoMetadataType WIDTH
The width of the video, in pixels.

Method Detail

values

public static final VideoMetadataType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(VideoMetadataType c : VideoMetadataType.values())
        System.out.println(c);

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

valueOf

public static VideoMetadataType 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

getObjectType

public java.lang.Class<?> getObjectType()
Get the type of object this metadata represents.

Returns:
object type