public enum Mimetypes extends Enum<Mimetypes>
| Enum Constant and Description |
|---|
APPLICATION_OCTET
The application octet.
|
APPLICATION_PDF
The application pdf.
|
APPLICATION_RTF
The application rtf.
|
EML
The eml.
|
IMAGE_GIF
The image gif.
|
IMAGE_IEF
The image ief.
|
IMAGE_JPEG
The image jpeg.
|
IMAGE_PJPEG
The image pjpeg.
|
IMAGE_PNG
The image png.
|
IMAGE_TIFF
The image tiff.
|
IMAGE_X_ICON
The image x icon.
|
IMAGE_X_XCF
The image x xcf.GIMP image file
|
TEXT_CSV
The text csv.
|
TEXT_HTML
The text html.
|
TEXT_ICS
The text ics.
|
TEXT_PLAIN
The text plain.
|
TEXT_XML
The text xml.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getExtension(File file)
Gets the mime type from the given File.
|
static String |
getExtension(String fileName)
Gets the mime type from the given File.
|
String |
getMimetype()
Gets the mimetype.
|
static String |
getMimeType(File file)
Gets the mime type from the given File.
|
static Mimetypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mimetypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mimetypes IMAGE_JPEG
public static final Mimetypes IMAGE_PJPEG
public static final Mimetypes IMAGE_PNG
public static final Mimetypes IMAGE_GIF
public static final Mimetypes IMAGE_TIFF
public static final Mimetypes IMAGE_IEF
public static final Mimetypes IMAGE_X_ICON
public static final Mimetypes IMAGE_X_XCF
public static final Mimetypes TEXT_CSV
public static final Mimetypes EML
public static final Mimetypes TEXT_ICS
public static final Mimetypes TEXT_PLAIN
public static final Mimetypes TEXT_HTML
public static final Mimetypes TEXT_XML
public static final Mimetypes APPLICATION_PDF
public static final Mimetypes APPLICATION_RTF
public static final Mimetypes APPLICATION_OCTET
public static Mimetypes[] values()
for (Mimetypes c : Mimetypes.values()) System.out.println(c);
public static Mimetypes 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 static String getExtension(File file)
file - the filepublic static String getExtension(String fileName)
fileName - the file namepublic static String getMimeType(File file)
file - the filepublic String getMimetype()
Copyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.