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 MimeType
This method returns the mime-type extrapolated from the file.static MimeType
fromFileExtension
(String fileExtension) ReturnsMimeType
matching to the providedfileExtension
Stringstatic MimeType
fromFileName
(String fileName) This method returns the mime-type extrapolated from the file name.static MimeType
fromMimeTypeString
(String mimeTypeString) This method returns the first representation of theMimeType
corresponding to the given mime-type string.Returns file extension corresponding to the MimeTypestatic String
getFileExtension
(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 availableMimeTypeLoader
s using a ServiceLoader
-
Method Details
-
getMimeTypeString
-
getExtension
-
fromMimeTypeString
This method returns the first representation of theMimeType
corresponding 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 availableMimeTypeLoader
s using a ServiceLoader- Returns:
- iterable of
MimeTypeLoader
-