Package | Description |
---|---|
ddf.mime | |
ddf.mime.mapper |
Modifier and Type | Method and Description |
---|---|
String |
MimeTypeMapper.getFileExtensionForMimeType(String contentType)
Retrieves the file extension for the specified mime type, e.g., returns ".nitf" for a mime type
of "image/nitf".
|
String |
MimeTypeMapper.getMimeTypeForFileExtension(String fileExtension)
Retrieves the mime type for the specified file extension, e.g., returns "image/nitf" for a file
extension of "nitf".
|
String |
MimeTypeMapper.guessMimeType(InputStream is,
String fileExtension)
Attempts to guess the mime type for the specified file extension by introspecting the supplied
InputStream if necessary.
|
Modifier and Type | Method and Description |
---|---|
String |
MimeTypeMapperImpl.getFileExtensionForMimeType(String mimeType) |
String |
MimeTypeMapperImpl.getMimeTypeForFileExtension(String fileExtension) |
String |
MimeTypeMapperImpl.guessMimeType(InputStream is,
String fileExtension) |
This work is licensed under a Creative Commons Attribution 4.0 International License.