Package eu.europa.esig.dss.enumerations
Enum MimeTypeEnum
- All Implemented Interfaces:
MimeType
,Serializable
,Comparable<MimeTypeEnum>
Contains default MimeType enumerations
-
Enum Constant Summary
Enum ConstantDescriptionasic-easic-soctet-streamcertificatecrlhtmljosejose+jsonjpegjsonopendocument graphicsopendocument presentationopendocument spreadsheetopendocument textpdfpkcs7-signaturepngsvgplain texttimestamp-tokenxmlzip -
Method Summary
Modifier and TypeMethodDescriptionReturns file extension corresponding to the MimeTypeGets String identifying the MimeTypestatic MimeTypeEnum
Returns the enum constant of this type with the specified name.static MimeTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BINARY
octet-stream -
TEXT
plain text -
XML
xml -
HTML
html -
PDF
pdf -
JSON
json -
JOSE
jose -
JOSE_JSON
jose+json -
PKCS7
pkcs7-signature -
TST
timestamp-token -
CRL
crl -
CER
certificate -
ZIP
zip -
ASICS
asic-s -
ASICE
asic-e -
ODT
opendocument text -
ODS
opendocument spreadsheet -
ODP
opendocument presentation -
ODG
opendocument graphics -
PNG
png -
JPEG
jpeg -
SVG
svg
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMimeTypeString
Description copied from interface:MimeType
Gets String identifying the MimeType- Specified by:
getMimeTypeString
in interfaceMimeType
- Returns:
- the mimeTypeString
-
getExtension
Description copied from interface:MimeType
Returns file extension corresponding to the MimeType- Specified by:
getExtension
in interfaceMimeType
- Returns:
String
file extension
-