public enum MimeTypeSupport extends Enum<MimeTypeSupport>
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension() |
String |
getLabel() |
String |
getMimeName() |
MimeTypeSupport |
getMimeTypeSupportFromExtension(String ext) |
MimeTypeSupport |
getMimeTypeSupportFromMimeName(String mimeName) |
String |
toString() |
static MimeTypeSupport |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeTypeSupport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeTypeSupport _csv
public static final MimeTypeSupport _jpg
public static final MimeTypeSupport _json
public static final MimeTypeSupport _txt
public static final MimeTypeSupport _unknow
public static MimeTypeSupport[] values()
for (MimeTypeSupport c : MimeTypeSupport.values()) System.out.println(c);
public static MimeTypeSupport 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 toString()
toString in class Enum<MimeTypeSupport>public String getExtension()
public String getMimeName()
public String getLabel()
public MimeTypeSupport getMimeTypeSupportFromExtension(String ext)
public MimeTypeSupport getMimeTypeSupportFromMimeName(String mimeName)
Copyright © 2015. All Rights Reserved.