Interface MimetypeEntry
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
MimetypeEntryImpl
MimetypeEntry entry.
Holds meta information about a mimetype.
- Author:
- Julien Anguenot, Laurent Godard
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of extensions for this mimetype.Returns the path of the icon for this mimetype.getMajor()
Returns the major part of the RFC-2046.Returns the mimetype's names.getMinor()
Returns the minor part of the RFC-2046.Returns the main RFC-2046 name for this mime type.boolean
isBinary()
Is this a binary mimetype?boolean
Is this mimetype supported by a oleExtract plugin?boolean
Is this mimetype supported by a LiveEdit plugin?
-
Method Details
-
getMimetypes
Returns the mimetype's names.- Returns:
- list of strings containing the mimetype names
-
getNormalized
String getNormalized()Returns the main RFC-2046 name for this mime type.If this mime type has several names ('text/restructured', 'text-x-rst'), then this method will always return the first form.
- Returns:
- the main RFC-2046 name for this mime type
-
getMajor
String getMajor()Returns the major part of the RFC-2046.- Returns:
- the major part of the RFC-2046 name of this mime type.
- See Also:
-
getMinor
String getMinor()Returns the minor part of the RFC-2046.- Returns:
- string
- See Also:
-
getIconPath
String getIconPath()Returns the path of the icon for this mimetype.- Returns:
- String
-
getExtensions
Returns the list of extensions for this mimetype.- Returns:
- list of strings that contain different mimetypes
-
isBinary
boolean isBinary()Is this a binary mimetype?Might be useful to know if we can read it as human.
- Returns:
- boolean
-
isOnlineEditable
boolean isOnlineEditable()Is this mimetype supported by a LiveEdit plugin?Might be useful to know to display the Edit online link.
- Returns:
- boolean
-
isOleSupported
boolean isOleSupported()Is this mimetype supported by a oleExtract plugin?If the property is true, processes the ole Extraction, otherwise skip.
- Returns:
- boolean
-