Enum MimeType

    • Enum Constant Detail

      • PNG

        @SerializedName("image/png")
        public static final MimeType PNG
        PNG image format
      • GIF

        @SerializedName("image/gif")
        public static final MimeType GIF
        GIF image format
      • BMP

        @SerializedName("image/bmp")
        public static final MimeType BMP
        BMP image format
      • JPG

        @SerializedName("image/jpg")
        public static final MimeType JPG
        JPG image format
      • JPEG

        @SerializedName("image/jpeg")
        public static final MimeType JPEG
        JPEG image format
      • SVG

        @SerializedName("image/svg")
        public static final MimeType SVG
        SVG image format
      • SVG_XML

        @SerializedName("image/svg+xml")
        public static final MimeType SVG_XML
        SVG with XML image format
      • HTML

        @SerializedName("text/html")
        public static final MimeType HTML
        HTML format
      • XML

        @SerializedName("text/xml")
        public static final MimeType XML
        XML format
      • APPLICATION_XML

        @SerializedName("application/xml")
        public static final MimeType APPLICATION_XML
        Alternative XML format
      • JSON

        @SerializedName("application/json")
        public static final MimeType JSON
        JSON format
      • TXT

        @SerializedName("text/plain")
        public static final MimeType TXT
        Plain TXT format
      • PDF

        @SerializedName("application/pdf")
        public static final MimeType PDF
        PDF format
      • MP4

        @SerializedName("video/mp4")
        public static final MimeType MP4
        MP4 video format
      • UNKNOWN

        @SerializedName("unknown")
        public static final MimeType UNKNOWN
        Unknown format
    • Method Detail

      • values

        public static MimeType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MimeType c : MimeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MimeType 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
      • getContentType

        public String getContentType()
        Get the content type of this mime type.
        Returns:
        The content type.