Package gov.nih.mipav.model.file
Enum MetadataExtractor.FileType
- java.lang.Object
-
- java.lang.Enum<MetadataExtractor.FileType>
-
- gov.nih.mipav.model.file.MetadataExtractor.FileType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MetadataExtractor.FileType>
- Enclosing class:
- MetadataExtractor
public static enum MetadataExtractor.FileType extends java.lang.Enum<MetadataExtractor.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.Crx
Canon camera raw (version 3).Eps
Flv
Gif
Heif
Ico
Indd
Jpeg
Mp3
Mp4
Mxf
Nef
Nikon camera raw.Orf
Olympus camera raw.Pcx
Pdf
Png
Psd
QuickTime
Qxp
Raf
FujiFilm camera raw.Ram
Riff
Rtf
Rw2
Panasonic camera raw.Sit
Sitx
Swf
Tiff
Unknown
Vob
Wav
WebP
Zip
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
_extensions
private java.lang.String
_longName
private java.lang.String
_mimeType
private java.lang.String
_name
-
Constructor Summary
Constructors Modifier Constructor Description private
FileType(java.lang.String name, java.lang.String longName, java.lang.String mimeType, java.lang.String... extensions)
-
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 MetadataExtractor.FileType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MetadataExtractor.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 MetadataExtractor.FileType Unknown
-
Jpeg
public static final MetadataExtractor.FileType Jpeg
-
Tiff
public static final MetadataExtractor.FileType Tiff
-
Psd
public static final MetadataExtractor.FileType Psd
-
Png
public static final MetadataExtractor.FileType Png
-
Bmp
public static final MetadataExtractor.FileType Bmp
-
Gif
public static final MetadataExtractor.FileType Gif
-
Ico
public static final MetadataExtractor.FileType Ico
-
Pcx
public static final MetadataExtractor.FileType Pcx
-
Riff
public static final MetadataExtractor.FileType Riff
-
Wav
public static final MetadataExtractor.FileType Wav
-
Avi
public static final MetadataExtractor.FileType Avi
-
WebP
public static final MetadataExtractor.FileType WebP
-
QuickTime
public static final MetadataExtractor.FileType QuickTime
-
Mp4
public static final MetadataExtractor.FileType Mp4
-
Heif
public static final MetadataExtractor.FileType Heif
-
Eps
public static final MetadataExtractor.FileType Eps
-
Mp3
public static final MetadataExtractor.FileType Mp3
-
Arw
public static final MetadataExtractor.FileType Arw
Sony camera raw.
-
Crw
public static final MetadataExtractor.FileType Crw
Canon camera raw, version 1.
-
Cr2
public static final MetadataExtractor.FileType Cr2
Canon camera raw, version 2.
-
Nef
public static final MetadataExtractor.FileType Nef
Nikon camera raw.
-
Orf
public static final MetadataExtractor.FileType Orf
Olympus camera raw.
-
Raf
public static final MetadataExtractor.FileType Raf
FujiFilm camera raw.
-
Rw2
public static final MetadataExtractor.FileType Rw2
Panasonic camera raw.
-
Crx
public static final MetadataExtractor.FileType Crx
Canon camera raw (version 3). Shared by CR3 (image) and CRM (video).
-
Aac
public static final MetadataExtractor.FileType Aac
-
Asf
public static final MetadataExtractor.FileType Asf
-
Cfbf
public static final MetadataExtractor.FileType Cfbf
-
Flv
public static final MetadataExtractor.FileType Flv
-
Indd
public static final MetadataExtractor.FileType Indd
-
Mxf
public static final MetadataExtractor.FileType Mxf
-
Pdf
public static final MetadataExtractor.FileType Pdf
-
Qxp
public static final MetadataExtractor.FileType Qxp
-
Ram
public static final MetadataExtractor.FileType Ram
-
Rtf
public static final MetadataExtractor.FileType Rtf
-
Sit
public static final MetadataExtractor.FileType Sit
-
Sitx
public static final MetadataExtractor.FileType Sitx
-
Swf
public static final MetadataExtractor.FileType Swf
-
Vob
public static final MetadataExtractor.FileType Vob
-
Zip
public static final MetadataExtractor.FileType Zip
-
-
Method Detail
-
values
public static MetadataExtractor.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 (MetadataExtractor.FileType c : MetadataExtractor.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 MetadataExtractor.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()
-
-