Package org.nuxeo.ecm.platform.mimetype
Class MimetypeEntryImpl
java.lang.Object
org.nuxeo.ecm.platform.mimetype.MimetypeEntryImpl
- All Implemented Interfaces:
Serializable
,MimetypeEntry
MimetypeEntry.
A mimetype instance holds mimetype meta information.
- Author:
- Julien Anguenot
- See Also:
-
Field Summary
-
Constructor Summary
-
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?
-
Field Details
-
extensions
-
iconPath
-
binary
protected final boolean binary -
onlineEditable
protected final boolean onlineEditable -
oleSupported
protected final boolean oleSupported -
mimetypes
-
normalized
-
-
Constructor Details
-
MimetypeEntryImpl
-
-
Method Details
-
getExtensions
Description copied from interface:MimetypeEntry
Returns the list of extensions for this mimetype.- Specified by:
getExtensions
in interfaceMimetypeEntry
- Returns:
- list of strings that contain different mimetypes
-
getIconPath
Description copied from interface:MimetypeEntry
Returns the path of the icon for this mimetype.- Specified by:
getIconPath
in interfaceMimetypeEntry
- Returns:
- String
-
getMimetypes
Description copied from interface:MimetypeEntry
Returns the mimetype's names.- Specified by:
getMimetypes
in interfaceMimetypeEntry
- Returns:
- list of strings containing the mimetype names
-
getMajor
Description copied from interface:MimetypeEntry
Returns the major part of the RFC-2046.- Specified by:
getMajor
in interfaceMimetypeEntry
- Returns:
- the major part of the RFC-2046 name of this mime type.
- See Also:
-
getMinor
Description copied from interface:MimetypeEntry
Returns the minor part of the RFC-2046.- Specified by:
getMinor
in interfaceMimetypeEntry
- Returns:
- string
- See Also:
-
getNormalized
Description copied from interface:MimetypeEntry
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.
- Specified by:
getNormalized
in interfaceMimetypeEntry
- Returns:
- the main RFC-2046 name for this mime type
-
isBinary
public boolean isBinary()Description copied from interface:MimetypeEntry
Is this a binary mimetype?Might be useful to know if we can read it as human.
- Specified by:
isBinary
in interfaceMimetypeEntry
- Returns:
- boolean
-
isOnlineEditable
public boolean isOnlineEditable()Description copied from interface:MimetypeEntry
Is this mimetype supported by a LiveEdit plugin?Might be useful to know to display the Edit online link.
- Specified by:
isOnlineEditable
in interfaceMimetypeEntry
- Returns:
- boolean
-
isOleSupported
public boolean isOleSupported()Description copied from interface:MimetypeEntry
Is this mimetype supported by a oleExtract plugin?If the property is true, processes the ole Extraction, otherwise skip.
- Specified by:
isOleSupported
in interfaceMimetypeEntry
- Returns:
- boolean
-