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