public enum MimeTypeSupport extends Enum<MimeTypeSupport>
| Enum Constant and Description |
|---|
_bmp |
_csv |
_gif |
_jpg |
_json |
_pdf |
_png |
_txt |
_unknow |
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension() |
String |
getLabel() |
String |
getMimeName() |
static MimeTypeSupport |
getMimeTypeSupportFromExtension(String ext) |
static 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 _png
public static final MimeTypeSupport _gif
public static final MimeTypeSupport _bmp
public static final MimeTypeSupport _json
public static final MimeTypeSupport _txt
public static final MimeTypeSupport _pdf
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 static MimeTypeSupport getMimeTypeSupportFromExtension(String ext)
public static MimeTypeSupport getMimeTypeSupportFromMimeName(String mimeName)
Copyright © 2015. All Rights Reserved.