Package de.galan.commons.net
Enum Class MimeType
- All Implemented Interfaces:
Serializable,Comparable<MimeType>,Constable
A list with the typical and most used MIME Types, see also http://www.iana.org/assignments/media-types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionapplication/atom+xmlapplication/x-x509-ca-certapplication/x-cocoaapplication/x-gzipapplication/mac-binhex40application/java-archiveapplication/x-java-archive-diffapplication/x-java-serialized-objectapplication/x-javascriptapplication/x-java-jnlp-fileapplication/jsonapplication/vnd.ms-excelapplication/vnd.ms-powerpointapplication/mswordapplication/octet-streamapplication/x-pilotapplication/pdfapplication/x-perlapplication/postscriptapplication/x-rar-compressedapplication/x-redhat-package-managerapplication/rtfapplication/x-makeselfapplication/x-seaapplication/x-shockwave-flashapplication/x-stuffitapplication/x-tclapplication/vnd.wap.wmlcapplication/vnd.wap.xhtml+xmlapplication/x-xpinstallapplication/zipaudio/midiaudio/mpegaudio/x-realaudioimage/x-ms-bmpimage/gifimage/x-iconimage/x-jngimage/jpegimage/pngimage/svg+xmlimage/tiffimage/vnd.wap.wbmptext/csstext/x-componenttext/htmltext/vnd.sun.j2me.app-descriptortext/mathmltext/plaintext/vnd.wap.wmltext/xmlvideo/3gppvideo/x-ms-asfvideo/x-msvideovideo/x-flvvideo/x-m4vvideo/x-mngvideo/mp4video/mpegvideo/quicktimevideo/x-ms-wmv -
Method Summary
Modifier and TypeMethodDescriptionstatic MimeTypegetMimeType(String extension) Returns the MimeType depending on the file-extension.toString()static MimeTypeReturns the enum constant of this class with the specified name.static MimeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT_HTML
text/html -
TEXT_CSS
text/css -
TEXT_XML
text/xml -
TEXT_PLAIN
text/plain -
TEXT_MATHML
text/mathml -
TEXT_J2ME_JAD
text/vnd.sun.j2me.app-descriptor -
TEXT_WML
text/vnd.wap.wml -
TEXT_HTC
text/x-component -
IMAGE_GIF
image/gif -
IMAGE_JPEG
image/jpeg -
IMAGE_PNG
image/png -
IMAGE_TIFF
image/tiff -
IMAGE_WBMP
image/vnd.wap.wbmp -
IMAGE_ICO
image/x-icon -
IMAGE_JNG
image/x-jng -
IMAGE_BMP
image/x-ms-bmp -
IMAGE_SVG
image/svg+xml -
APPLICATION_JSON
application/json -
APPLICATION_JAVASCRIPT
application/x-javascript -
APPLICATION_ATOM
application/atom+xml -
APPLICATION_JAR
application/java-archive -
APPLICATION_HQX
application/mac-binhex40 -
APPLICATION_MSWORD
application/msword -
APPLICATION_MSEXCEL
application/vnd.ms-excel -
APPLICATION_MSPOWERPOINT
application/vnd.ms-powerpoint -
APPLICATION_PDF
application/pdf -
APPLICATION_POSTSCRIPT
application/postscript -
APPLICATION_RTF
application/rtf -
APPLICATION_ZIP
application/zip -
APPLICATION_WMLC
application/vnd.wap.wmlc -
APPLICATION_XHTML
application/vnd.wap.xhtml+xml -
APPLICATION_COCOA
application/x-cocoa -
APPLICATION_JARDIFF
application/x-java-archive-diff -
APPLICATION_JNLP
application/x-java-jnlp-file -
APPLICATION_RUN
application/x-makeself -
APPLICATION_PERL
application/x-perl -
APPLICATION_PALM
application/x-pilot -
APPLICATION_RAR
application/x-rar-compressed -
APPLICATION_RPM
application/x-redhat-package-manager -
APPLICATION_SEA
application/x-sea -
APPLICATION_SHOCKWAVE
application/x-shockwave-flash -
APPLICATION_SIT
application/x-stuffit -
APPLICATION_TCL
application/x-tcl -
APPLICATION_CACERT
application/x-x509-ca-cert -
APPLICATION_XPINSTALL
application/x-xpinstall -
APPLICATION_JAVA_SERIALIZED
application/x-java-serialized-object -
APPLICATION_OCTETSTREAM
application/octet-stream -
APPLICATION_GZIP
application/x-gzip -
AUDIO_MIDI
audio/midi -
AUDIO_MPEG
audio/mpeg -
AUDIO_REALAUDIO
audio/x-realaudio -
VIDEO_3GPP
video/3gpp -
VIDEO_MPEG
video/mpeg -
VIDEO_QUICKTIME
video/quicktime -
VIDEO_FLV
video/x-flv -
VIDEO_MNG
video/x-mng -
VIDEO_MP4
video/mp4 -
VIDEO_ASF
video/x-ms-asf -
VIDEO_WMV
video/x-ms-wmv -
VIDEO_AVI
video/x-msvideo -
VIDEO_M4V
video/x-m4v
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMimeType
-
getFileExtensions
-
toString
-
getMimeType
Returns the MimeType depending on the file-extension.
-