public interface IMimeUtil
Modifier and Type | Method and Description |
---|---|
String |
getContentTypeFromLocation(String location)
Returns the appropriate mime type for this file location
|
String |
getEncoding(String mimeType)
Returns encoding from mimeType string, null if not defined
|
String |
getMimeExtension(String mimeType)
Get the appropriate extension for any given mime type
|
String |
getMimeType(String ext)
Returns the appropriate mime type for the extension
|
boolean |
isCompressed(String mimeType)
Returns whether this is a compressed mimeType
|
boolean |
isStreaming(String mimeType)
Returns whether this is a streaming media mimeType
|
String |
setEncoding(String mimeType,
String encoding) |
String |
stripEncoding(String mimeType)
Strips any encoding from this mime-type
|
String getContentTypeFromLocation(String location)
location
- String getMimeType(String ext)
ext
- might be: .xlsString getEncoding(String mimeType)
mimeType
- String getMimeExtension(String mimeType)
mimeType
- for example: image/jpegboolean isCompressed(String mimeType)
mimeType
- for example: image/jpegboolean isStreaming(String mimeType)
mimeType
- for example: video/avi