Package eu.europa.esig.dss.enumerations
Class MimeTypeEnumLoader
java.lang.Object
eu.europa.esig.dss.enumerations.MimeTypeEnumLoader
- All Implemented Interfaces:
MimeTypeLoader
Contains methods to extract
MimeTypeEnum
s-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromFileExtension
(String fileExtension) ReturnsMimeType
matching to the providedfileExtension
StringfromMimeTypeString
(String mimeTypeString) Returns aMimeType
matching the MimeTypeString
-
Constructor Details
-
MimeTypeEnumLoader
public MimeTypeEnumLoader()
-
-
Method Details
-
fromMimeTypeString
Description copied from interface:MimeTypeLoader
Returns aMimeType
matching the MimeTypeString
- Specified by:
fromMimeTypeString
in interfaceMimeTypeLoader
- Parameters:
mimeTypeString
-String
identifying the MimeType- Returns:
MimeType
if associated MimeType found, NULL otherwise
-
fromFileExtension
Description copied from interface:MimeTypeLoader
ReturnsMimeType
matching to the providedfileExtension
String- Specified by:
fromFileExtension
in interfaceMimeTypeLoader
- Parameters:
fileExtension
-String
- Returns:
MimeType
if associated MimeType found, NULL otherwise
-