Package com.saperion.constants.mime
Enum Extensions
- java.lang.Object
-
- java.lang.Enum<Extensions>
-
- com.saperion.constants.mime.Extensions
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Extensions>
public enum Extensions extends java.lang.Enum<Extensions>
Enum that represents the type format to MIME mapping.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtension()
static Extensions
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Extensions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOC
public static final Extensions DOC
-
DOCX
public static final Extensions DOCX
-
EML
public static final Extensions EML
-
RTF
public static final Extensions RTF
-
PPT
public static final Extensions PPT
-
PPTX
public static final Extensions PPTX
-
XLS
public static final Extensions XLS
-
XLSX
public static final Extensions XLSX
-
MSG
public static final Extensions MSG
-
TXT
public static final Extensions TXT
-
BMP
public static final Extensions BMP
-
GIF
public static final Extensions GIF
-
TIFF
public static final Extensions TIFF
-
TIF
public static final Extensions TIF
-
JPG
public static final Extensions JPG
-
JPEG
public static final Extensions JPEG
-
-
Method Detail
-
values
public static Extensions[] 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 (Extensions c : Extensions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Extensions 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
-
getExtension
public java.lang.String getExtension()
-
-