Package snap.web
Class MIMEType
java.lang.Object
snap.web.MIMEType
A class to help work with MIME type strings.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFileTypeForMimeType
(String aMIMEType) Returns the file type for a MIME type.static String[]
Returns all known image types.static String
getMimeTypeForFileType
(String fileType) Returns the file type for string path, extension, type.static String
getMimeTypeForPath
(String aStr) Returns the file type for string path, extension, type.
-
Field Details
-
HTML
- See Also:
-
JPEG
- See Also:
-
PNG
- See Also:
-
GIF
- See Also:
-
JAVA
- See Also:
-
MD
- See Also:
-
MIDI
- See Also:
-
PDF
- See Also:
-
ReportFile
- See Also:
-
TEXT
- See Also:
-
WAV
- See Also:
-
MP3
- See Also:
-
SETTINGS
- See Also:
-
ZIP
- See Also:
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
MIMEType
public MIMEType()
-
-
Method Details
-
getFileTypeForMimeType
Returns the file type for a MIME type. -
getMimeTypeForPath
Returns the file type for string path, extension, type. -
getMimeTypeForFileType
Returns the file type for string path, extension, type. -
getImageTypes
Returns all known image types.
-