public enum MimeType extends Enum<MimeType>
| Enum Constant and Description |
|---|
APPLICATION_JSON |
APPLICATION_PDF |
APPLICATION_ZIP |
IMAGE_PNG |
TEXT_CSV |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName() |
String |
getMimeType() |
static boolean |
isKnownMimeType(String value) |
static MimeType |
toInstance(String value) |
String |
toString() |
static MimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeType APPLICATION_JSON
public static final MimeType APPLICATION_PDF
public static final MimeType APPLICATION_ZIP
public static final MimeType IMAGE_PNG
public static final MimeType TEXT_CSV
public static MimeType[] values()
for (MimeType c : MimeType.values()) System.out.println(c);
public static MimeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getMimeType()
public String getFormatName()
public static boolean isKnownMimeType(String value)
Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.