Package gov.nasa.pds.tools.util
Enum EncodingMimeMapping
- java.lang.Object
-
- java.lang.Enum<EncodingMimeMapping>
-
- gov.nasa.pds.tools.util.EncodingMimeMapping
-
- All Implemented Interfaces:
Serializable
,Comparable<EncodingMimeMapping>
public enum EncodingMimeMapping extends Enum<EncodingMimeMapping>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
allowed()
boolean
contains(String extension)
static EncodingMimeMapping
find(String encoding)
static EncodingMimeMapping
valueOf(String name)
Returns the enum constant of this type with the specified name.static EncodingMimeMapping[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAT
public static final EncodingMimeMapping DAT
-
GIF
public static final EncodingMimeMapping GIF
-
J2C
public static final EncodingMimeMapping J2C
-
JPEG
public static final EncodingMimeMapping JPEG
-
MP4
public static final EncodingMimeMapping MP4
-
PDF
public static final EncodingMimeMapping PDF
-
PDFA
public static final EncodingMimeMapping PDFA
-
PNG
public static final EncodingMimeMapping PNG
-
SEED
public static final EncodingMimeMapping SEED
-
TIFF
public static final EncodingMimeMapping TIFF
-
WAV
public static final EncodingMimeMapping WAV
-
-
Method Detail
-
values
public static EncodingMimeMapping[] 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 (EncodingMimeMapping c : EncodingMimeMapping.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncodingMimeMapping 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 nameNullPointerException
- if the argument is null
-
contains
public boolean contains(String extension)
-
find
public static EncodingMimeMapping find(String encoding) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-