Enum Class MimeType

java.lang.Object
java.lang.Enum<MimeType>
com.myscript.iink.MimeType
All Implemented Interfaces:
Serializable, Comparable<MimeType>, Constable

public enum MimeType extends Enum<MimeType>
Represents a MIME type.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Open XML word processing document (application/vnd.openxmlformats-officedocument.wordprocessingml.document).
    GIF Image (image/gif).
    Graph Markup Language (application/graphml+xml).
    HyperText Markup Language (text/html)
    Json Interactive Ink eXchange format (application/vnd.myscript.jiix).
    JPEG Image (image/jpeg).
    LaTeX (application/x-latex).
    Mathematical Markup Language (application/mathml+xml).
    Music Extensible Markup Language (application/vnd.recordare.musicxml+xml).
    Microsoft Office Clipboard format (Art::GVML ClipFormat).
    Portable Document Format (application/pdf).
    PNG Image (image/png).
    Open XML presentation (application/vnd.openxmlformats-officedocument.presentationml.presentation).
    Scalable Vector Graphics (image/svg+xml).
    Plain text (text/plain).
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull MimeType
    forValue(int value)
     
    static @NotNull MimeType
    fromTypeName(@NotNull String typeName)
     
    @NotNull String
    Returns a comma separated list of file extensions.
    @NotNull String
    Returns a descriptive name in English.
    @NotNull String
    Returns the name of the media type, in the form "type/subtype".
    boolean
     
    boolean
     
    int
    Returns the mime type unique integer value.
    static MimeType
    Returns the enum constant of this class with the specified name.
    static MimeType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • TEXT

      public static final MimeType TEXT
      Plain text (text/plain).
    • HTML

      public static final MimeType HTML
      HyperText Markup Language (text/html)
    • MATHML

      public static final MimeType MATHML
      Mathematical Markup Language (application/mathml+xml).
    • LATEX

      public static final MimeType LATEX
      LaTeX (application/x-latex).
    • GRAPHML

      public static final MimeType GRAPHML
      Graph Markup Language (application/graphml+xml).
    • MUSICXML

      public static final MimeType MUSICXML
      Music Extensible Markup Language (application/vnd.recordare.musicxml+xml).
    • SVG

      public static final MimeType SVG
      Scalable Vector Graphics (image/svg+xml).
    • JIIX

      public static final MimeType JIIX
      Json Interactive Ink eXchange format (application/vnd.myscript.jiix).
    • JPEG

      public static final MimeType JPEG
      JPEG Image (image/jpeg).
    • PNG

      public static final MimeType PNG
      PNG Image (image/png).
    • GIF

      public static final MimeType GIF
      GIF Image (image/gif).
    • PDF

      public static final MimeType PDF
      Portable Document Format (application/pdf).
    • DOCX

      public static final MimeType DOCX
      Open XML word processing document (application/vnd.openxmlformats-officedocument.wordprocessingml.document).
    • PPTX

      public static final MimeType PPTX
      Open XML presentation (application/vnd.openxmlformats-officedocument.presentationml.presentation).
    • OFFICE_CLIPBOARD

      public static final MimeType OFFICE_CLIPBOARD
      Microsoft Office Clipboard format (Art::GVML ClipFormat).
      Since:
      1.1
  • Method Details

    • values

      public static MimeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MimeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public int value()
      Returns the mime type unique integer value.
      Returns:
      the mime type integer value.
    • getName

      @NotNull public @NotNull String getName()
      Returns a descriptive name in English.
      Returns:
      the descriptive name.
    • getTypeName

      @NotNull public @NotNull String getTypeName()
      Returns the name of the media type, in the form "type/subtype".
      Returns:
      the name of the media type.
    • getFileExtensions

      @NotNull public @NotNull String getFileExtensions()
      Returns a comma separated list of file extensions.
      Returns:
      the file extensions, or null
    • fromTypeName

      @NotNull public static @NotNull MimeType fromTypeName(@NotNull @NotNull String typeName)
    • forValue

      @NotNull public static @NotNull MimeType forValue(int value)
    • isTextual

      public boolean isTextual()
    • isImage

      public boolean isImage()