Package eu.europa.esig.dss.enumerations
Interface MimeType
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
MimeTypeEnum
Identifies a file MimeType and its attributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic MimeTypeThis method returns the mime-type extrapolated from the file.static MimeTypefromFileExtension(String fileExtension) ReturnsMimeTypematching to the providedfileExtensionStringstatic MimeTypefromFileName(String fileName) This method returns the mime-type extrapolated from the file name.static MimeTypefromMimeTypeString(String mimeTypeString) This method returns the first representation of theMimeTypecorresponding to the given mime-type string.Returns file extension corresponding to the MimeTypestatic StringgetFileExtension(String fileName) Returns the file extension based on the position of the '.' in the fileName.Gets String identifying the MimeTypestatic Iterable<MimeTypeLoader> This method loads availableMimeTypeLoaders using a ServiceLoader
-
Method Details
-
getMimeTypeString
-
getExtension
-
fromMimeTypeString
This method returns the first representation of theMimeTypecorresponding to the given mime-type string.- Parameters:
mimeTypeString- is a string identifier composed of two parts: a "type" and a "subtype"- Returns:
- the extrapolated mime-type from the
String
-
fromFileExtension
-
fromFileName
-
fromFile
-
getFileExtension
-
mimeTypeLoaders
This method loads availableMimeTypeLoaders using a ServiceLoader- Returns:
- iterable of
MimeTypeLoader
-