Package org.n52.io
Enum Constants.MimeType
- java.lang.Object
-
- java.lang.Enum<Constants.MimeType>
-
- org.n52.io.Constants.MimeType
-
- All Implemented Interfaces:
Serializable,Comparable<Constants.MimeType>
- Enclosing interface:
- Constants
public static enum Constants.MimeType extends Enum<Constants.MimeType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION_JSONAPPLICATION_PDFAPPLICATION_ZIPIMAGE_PNGTEXT_CSV
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormatName()StringgetMimeType()static booleanisKnownMimeType(String value)static Constants.MimeTypetoInstance(String value)StringtoString()static Constants.MimeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Constants.MimeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPLICATION_JSON
public static final Constants.MimeType APPLICATION_JSON
-
APPLICATION_PDF
public static final Constants.MimeType APPLICATION_PDF
-
APPLICATION_ZIP
public static final Constants.MimeType APPLICATION_ZIP
-
IMAGE_PNG
public static final Constants.MimeType IMAGE_PNG
-
TEXT_CSV
public static final Constants.MimeType TEXT_CSV
-
-
Method Detail
-
values
public static Constants.MimeType[] 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 (Constants.MimeType c : Constants.MimeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.MimeType 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
-
getMimeType
public String getMimeType()
-
getFormatName
public String getFormatName()
-
isKnownMimeType
public static boolean isKnownMimeType(String value)
-
toInstance
public static Constants.MimeType toInstance(String value)
-
toString
public String toString()
- Overrides:
toStringin classEnum<Constants.MimeType>
-
-