public final class ContentType extends Object
Modifier and Type | Method and Description |
---|---|
static String |
autoDetect(String absolutePath)
Tries to auto-detect the content type (MIME type) of a specific file.
|
public static final String APPLICATION_ENVOY
public static final String APPLICATION_FRACTALS
public static final String APPLICATION_FUTURESPLASH
public static final String APPLICATION_HTA
public static final String APPLICATION_INTERNET_PROPERTY_STREAM
public static final String APPLICATION_MAC_BINHEX40
public static final String APPLICATION_MS_WORD
public static final String APPLICATION_OCTET_STREAM
public static final String APPLICATION_ODA
public static final String APPLICATION_OLESCRIPT
public static final String APPLICATION_PDF
public static final String APPLICATION_PICS_RULES
public static final String APPLICATION_PKCS10
public static final String APPLICATION_PKIX_CRL
public static final String APPLICATION_POSTSCRIPT
public static final String APPLICATION_RTF
public static final String APPLICATION_SETPAY
public static final String APPLICATION_SETREG
public static final String APPLICATION_MS_EXCEL
public static final String APPLICATION_MS_OUTLOOK
public static final String APPLICATION_MS_PKICERTSTORE
public static final String APPLICATION_MS_PKISECCAT
public static final String APPLICATION_MS_PKISTL
public static final String APPLICATION_MS_POWERPOINT
public static final String APPLICATION_MS_PROJECT
public static final String APPLICATION_MS_WORKS
public static final String APPLICATION_WINHLP
public static final String APPLICATION_BCPIO
public static final String APPLICATION_CDF
public static final String APPLICATION_Z
public static final String APPLICATION_TGZ
public static final String APPLICATION_CPIO
public static final String APPLICATION_CSH
public static final String APPLICATION_DIRECTOR
public static final String APPLICATION_DVI
public static final String APPLICATION_GTAR
public static final String APPLICATION_GZIP
public static final String APPLICATION_HDF
public static final String APPLICATION_INTERNET_SIGNUP
public static final String APPLICATION_IPHONE
public static final String APPLICATION_JAVASCRIPT
public static final String APPLICATION_LATEX
public static final String APPLICATION_MS_ACCESS
public static final String APPLICATION_MS_CARD_FILE
public static final String APPLICATION_MS_CLIP
public static final String APPLICATION_MS_DOWNLOAD
public static final String APPLICATION_MS_MEDIAVIEW
public static final String APPLICATION_MS_METAFILE
public static final String APPLICATION_MS_MONEY
public static final String APPLICATION_MS_PUBLISHER
public static final String APPLICATION_MS_SCHEDULE
public static final String APPLICATION_MS_TERMINAL
public static final String APPLICATION_MS_WRITE
public static final String APPLICATION_NET_CDF
public static final String APPLICATION_PERFMON
public static final String APPLICATION_PKCS_12
public static final String APPLICATION_PKCS_7_CERTIFICATES
public static final String APPLICATION_PKCS_7_CERTREQRESP
public static final String APPLICATION_PKCS_7_MIME
public static final String APPLICATION_PKCS_7_SIGNATURE
public static final String APPLICATION_SH
public static final String APPLICATION_SHAR
public static final String APPLICATION_SHOCKWAVE_FLASH
public static final String APPLICATION_STUFFIT
public static final String APPLICATION_SV4CPIO
public static final String APPLICATION_SV4CRC
public static final String APPLICATION_TAR
public static final String APPLICATION_TCL
public static final String APPLICATION_TEX
public static final String APPLICATION_TEXINFO
public static final String APPLICATION_TROFF
public static final String APPLICATION_TROFF_MAN
public static final String APPLICATION_TROFF_ME
public static final String APPLICATION_TROFF_MS
public static final String APPLICATION_USTAR
public static final String APPLICATION_WAIS_SOURCE
public static final String APPLICATION_X509_CA_CERT
public static final String APPLICATION_PKO
public static final String APPLICATION_ZIP
public static final String APPLICATION_XML
public static final String AUDIO_BASIC
public static final String AUDIO_MID
public static final String AUDIO_MPEG
public static final String AUDIO_AIFF
public static final String AUDIO_M3U
public static final String AUDIO_REAL_AUDIO
public static final String AUDIO_WAV
public static final String IMAGE_BMP
public static final String IMAGE_COD
public static final String IMAGE_GIF
public static final String IMAGE_IEF
public static final String IMAGE_JPEG
public static final String IMAGE_PIPEG
public static final String IMAGE_SVG
public static final String IMAGE_TIFF
public static final String IMAGE_CMU_RASTER
public static final String IMAGE_CMX
public static final String IMAGE_ICO
public static final String IMAGE_PORTABLE_ANYMAP
public static final String IMAGE_PORTABLE_BITMAP
public static final String IMAGE_PORTABLE_GRAYMAP
public static final String IMAGE_PORTABLE_PIXMAP
public static final String IMAGE_XRGB
public static final String IMAGE_XBITMAP
public static final String IMAGE_XPIXMAP
public static final String IMAGE_XWINDOWDUMP
public static final String TEXT_CSS
public static final String TEXT_CSV
public static final String TEXT_H323
public static final String TEXT_HTML
public static final String TEXT_IULS
public static final String TEXT_PLAIN
public static final String TEXT_RICHTEXT
public static final String TEXT_SCRIPTLET
public static final String TEXT_TAB_SEPARATED_VALUES
public static final String TEXT_VIEWVIEW
public static final String TEXT_COMPONENT
public static final String TEXT_SETEXT
public static final String TEXT_VCARD
public static final String TEXT_XML
public static final String VIDEO_MPEG
public static final String VIDEO_MPEG4
public static final String VIDEO_QUICKTIME
public static final String VIDEO_LA_ASF
public static final String VIDEO_MS_ASF
public static final String VIDEO_AVI
public static final String VIDEO_MOVIE
public static String autoDetect(String absolutePath)
absolutePath
- absolute path to the file