Package com.drew.imaging
Enum FileType
- java.lang.Object
-
- java.lang.Enum<FileType>
-
- com.drew.imaging.FileType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileType>
public enum FileType extends java.lang.Enum<FileType>
Enumeration of supported file types. MIME Type Source: https://www.freeformatter.com/mime-types-list.html https://www.iana.org/assignments/media-types/media-types.xhtml
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Aac
Arw
Sony camera raw.Asf
Avi
Bmp
Cfbf
Cr2
Canon camera raw, version 2.Crw
Canon camera raw, version 1.Eps
Flv
Gif
Heif
Ico
Indd
Jpeg
Mov
Mp4
Mxf
Nef
Nikon camera raw.Orf
Olympus camera raw.Pcx
Pdf
Png
Psd
Qxp
Raf
FujiFilm camera raw.Ram
Riff
Rtf
Rw2
Panasonic camera raw.Sit
Sitx
Swf
Tiff
Unknown
Vob
Wav
WebP
Zip
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getAllExtensions()
java.lang.String
getCommonExtension()
java.lang.String
getLongName()
java.lang.String
getMimeType()
java.lang.String
getName()
static FileType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final FileType Unknown
-
Jpeg
public static final FileType Jpeg
-
Tiff
public static final FileType Tiff
-
Psd
public static final FileType Psd
-
Png
public static final FileType Png
-
Bmp
public static final FileType Bmp
-
Gif
public static final FileType Gif
-
Ico
public static final FileType Ico
-
Pcx
public static final FileType Pcx
-
Riff
public static final FileType Riff
-
Wav
public static final FileType Wav
-
Avi
public static final FileType Avi
-
WebP
public static final FileType WebP
-
Mov
public static final FileType Mov
-
Mp4
public static final FileType Mp4
-
Heif
public static final FileType Heif
-
Eps
public static final FileType Eps
-
Arw
public static final FileType Arw
Sony camera raw.
-
Crw
public static final FileType Crw
Canon camera raw, version 1.
-
Cr2
public static final FileType Cr2
Canon camera raw, version 2.
-
Nef
public static final FileType Nef
Nikon camera raw.
-
Orf
public static final FileType Orf
Olympus camera raw.
-
Raf
public static final FileType Raf
FujiFilm camera raw.
-
Rw2
public static final FileType Rw2
Panasonic camera raw.
-
Aac
public static final FileType Aac
-
Asf
public static final FileType Asf
-
Cfbf
public static final FileType Cfbf
-
Flv
public static final FileType Flv
-
Indd
public static final FileType Indd
-
Mxf
public static final FileType Mxf
-
Pdf
public static final FileType Pdf
-
Qxp
public static final FileType Qxp
-
Ram
public static final FileType Ram
-
Rtf
public static final FileType Rtf
-
Sit
public static final FileType Sit
-
Sitx
public static final FileType Sitx
-
Swf
public static final FileType Swf
-
Vob
public static final FileType Vob
-
Zip
public static final FileType Zip
-
-
Method Detail
-
values
public static FileType[] 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 (FileType c : FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileType 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 namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
getLongName
public java.lang.String getLongName()
-
getMimeType
public java.lang.String getMimeType()
-
getCommonExtension
public java.lang.String getCommonExtension()
-
getAllExtensions
public java.lang.String[] getAllExtensions()
-
-