Enum MimeTypeEnum

java.lang.Object
java.lang.Enum<MimeTypeEnum>
eu.europa.esig.dss.enumerations.MimeTypeEnum
All Implemented Interfaces:
MimeType, Serializable, Comparable<MimeTypeEnum>

public enum MimeTypeEnum extends Enum<MimeTypeEnum> implements MimeType
Contains default MimeType enumerations
  • Enum Constant Details

  • Method Details

    • values

      public static MimeTypeEnum[] 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

      public static MimeTypeEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMimeTypeString

      public String getMimeTypeString()
      Description copied from interface: MimeType
      Gets String identifying the MimeType
      Specified by:
      getMimeTypeString in interface MimeType
      Returns:
      the mimeTypeString
    • getExtension

      public String getExtension()
      Description copied from interface: MimeType
      Returns file extension corresponding to the MimeType
      Specified by:
      getExtension in interface MimeType
      Returns:
      String file extension