org.mmbase.applications.media
Enum Format
java.lang.Object
java.lang.Enum<Format>
org.mmbase.applications.media.Format
- All Implemented Interfaces:
- Serializable, Comparable<Format>
public enum Format
- extends Enum<Format>
Makes the 'Format' constants available.
- Since:
- MMBase-1.7
- Version:
- $Id: Format.java 42541 2010-06-14 10:00:20Z andre $
- Author:
- Michiel Meeuwissen
UNKNOWN
public static final Format UNKNOWN
MP3
public static final Format MP3
RA
public static final Format RA
WAV
public static final Format WAV
PCM
public static final Format PCM
MP2
public static final Format MP2
RM
public static final Format RM
VOB
public static final Format VOB
AVI
public static final Format AVI
MPEG
public static final Format MPEG
MP4
public static final Format MP4
MPG
public static final Format MPG
ASF
public static final Format ASF
MOV
public static final Format MOV
WMA
public static final Format WMA
OGG
public static final Format OGG
OGM
public static final Format OGM
RAM
public static final Format RAM
WMP
public static final Format WMP
HTML
public static final Format HTML
SMIL
public static final Format SMIL
QT
public static final Format QT
ASX
public static final Format ASX
WAX
public static final Format WAX
WMV
public static final Format WMV
WVX
public static final Format WVX
WM
public static final Format WM
WMX
public static final Format WMX
WMZ
public static final Format WMZ
WMD
public static final Format WMD
MID
public static final Format MID
OGV
public static final Format OGV
OGA
public static final Format OGA
WEBM
public static final Format WEBM
PODCAST
public static final Format PODCAST
VODCAST
public static final Format VODCAST
M4A
public static final Format M4A
M4V
public static final Format M4V
TS
public static final Format TS
GGP
public static final Format GGP
FLASH
public static final Format FLASH
FLV
public static final Format FLV
JPG
public static final Format JPG
JPEG
public static final Format JPEG
GIF
public static final Format GIF
BMP
public static final Format BMP
PNG
public static final Format PNG
TIFF
public static final Format TIFF
AAC
public static final Format AAC
FLAC
public static final Format FLAC
M3U
public static final Format M3U
M3U8
public static final Format M3U8
ANY
public static final Format ANY
RESOURCE
public static final String RESOURCE
- See Also:
- Constant Field Values
PUBLIC_ID_MIMEMAPPING_1_0
public static final String PUBLIC_ID_MIMEMAPPING_1_0
- See Also:
- Constant Field Values
DTD_MIMEMAPPING_1_0
public static final String DTD_MIMEMAPPING_1_0
- See Also:
- Constant Field Values
windowsMedia
protected static final List<Format> windowsMedia
real
protected static final List<Format> real
values
public static Format[] 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 (Format c : Format.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Format 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
readMimeMapping
static void readMimeMapping(String mimeMappingFile)
toInt
public int toInt()
getValue
public int getValue()
get
public static Format get(int i)
getMediaFormats
public static List<Format> getMediaFormats()
- don't know if this is nice
get
public static Format get(String id)
getGUIIndicator
public String getGUIIndicator(Locale locale)
isReal
public boolean isReal()
isWindowsMedia
public boolean isWindowsMedia()
getSimilar
public List<Format> getSimilar()
getMimeType
public MimeType getMimeType()
getMimeType
public MimeType getMimeType(String codec)
MMBase 2.0-SNAPSHOT - null