Package com.myscript.iink
Enum Class MimeType
- All Implemented Interfaces:
Serializable,Comparable<MimeType>,Constable
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 ConstantsEnum ConstantDescriptionOpen 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 TypeMethodDescriptionstatic @NotNull MimeTypeforValue(int value) static @NotNull MimeTypefromTypeName(@NotNull String typeName) @NotNull StringReturns a comma separated list of file extensions.@NotNull StringgetName()Returns a descriptive name in English.@NotNull StringReturns the name of the media type, in the form "type/subtype".booleanisImage()booleanintvalue()Returns the mime type unique integer value.static MimeTypeReturns the enum constant of this class with the specified name.static MimeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT
Plain text (text/plain). -
HTML
HyperText Markup Language (text/html) -
MATHML
Mathematical Markup Language (application/mathml+xml). -
LATEX
LaTeX (application/x-latex). -
GRAPHML
Graph Markup Language (application/graphml+xml). -
MUSICXML
Music Extensible Markup Language (application/vnd.recordare.musicxml+xml). -
SVG
Scalable Vector Graphics (image/svg+xml). -
JIIX
Json Interactive Ink eXchange format (application/vnd.myscript.jiix). -
JPEG
JPEG Image (image/jpeg). -
PNG
PNG Image (image/png). -
GIF
GIF Image (image/gif). -
PDF
Portable Document Format (application/pdf). -
DOCX
Open XML word processing document (application/vnd.openxmlformats-officedocument.wordprocessingml.document). -
PPTX
Open XML presentation (application/vnd.openxmlformats-officedocument.presentationml.presentation). -
OFFICE_CLIPBOARD
Microsoft Office Clipboard format (Art::GVML ClipFormat).- Since:
- 1.1
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
value
public int value()Returns the mime type unique integer value.- Returns:
- the mime type integer value.
-
getName
Returns a descriptive name in English.- Returns:
- the descriptive name.
-
getTypeName
Returns the name of the media type, in the form "type/subtype".- Returns:
- the name of the media type.
-
getFileExtensions
Returns a comma separated list of file extensions.- Returns:
- the file extensions, or
null
-
fromTypeName
-
forValue
-
isTextual
public boolean isTextual() -
isImage
public boolean isImage()
-