public class LexMimeType
extends java.net.URLConnection
| Constructor and Description |
|---|
LexMimeType()
Constructs a new LexMimeType
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileExtension(java.lang.String contentType)
Get the file extension for the associated MIME Content-Type
|
java.lang.String |
getMimeType(java.lang.String file)
Get the MIME Content-Type for a file
|
addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringpublic java.lang.String getMimeType(java.lang.String file)
file - the file pathpublic java.lang.String getFileExtension(java.lang.String contentType)
contentType - the MIME Content-Type