public class MimetypeEntryImpl extends Object implements MimetypeEntry
A mimetype instance holds mimetype meta information.
MimetypeEntry,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
binary |
protected List<String> |
extensions |
protected String |
iconPath |
protected List<String> |
mimetypes |
protected String |
normalized |
protected boolean |
oleSupported |
protected boolean |
onlineEditable |
| Constructor and Description |
|---|
MimetypeEntryImpl(String normalized,
List<String> mimetypes,
List<String> extensions,
String iconPath,
boolean binary,
boolean onlineEditable,
boolean oleSupported) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getExtensions()
Returns the list of extensions for this mimetype.
|
String |
getIconPath()
Returns the path of the icon for this mimetype.
|
String |
getMajor()
Returns the major part of the RFC-2046.
|
List<String> |
getMimetypes()
Returns the mimetype's names.
|
String |
getMinor()
Returns the minor part of the RFC-2046.
|
String |
getNormalized()
Returns the main RFC-2046 name for this mime type.
|
boolean |
isBinary()
Is this a binary mimetype?
|
boolean |
isOleSupported()
Is this mimetype supported by a oleExtract plugin?
|
boolean |
isOnlineEditable()
Is this mimetype supported by a LiveEdit plugin?
|
protected final List<String> extensions
protected final boolean binary
protected final boolean onlineEditable
protected final boolean oleSupported
protected final String normalized
public List<String> getExtensions()
MimetypeEntrygetExtensions in interface MimetypeEntrypublic String getIconPath()
MimetypeEntrygetIconPath in interface MimetypeEntrypublic List<String> getMimetypes()
MimetypeEntrygetMimetypes in interface MimetypeEntrypublic String getMajor()
MimetypeEntrygetMajor in interface MimetypeEntryMimetypeEntry.getNormalized()public String getMinor()
MimetypeEntrygetMinor in interface MimetypeEntryMimetypeEntry.getNormalized()public String getNormalized()
MimetypeEntryIf this mime type has several names ('text/restructured', 'text-x-rst'), then this method will always return the first form.
getNormalized in interface MimetypeEntrypublic boolean isBinary()
MimetypeEntryMight be useful to know if we can read it as human.
isBinary in interface MimetypeEntrypublic boolean isOnlineEditable()
MimetypeEntryMight be useful to know to display the Edit online link.
isOnlineEditable in interface MimetypeEntrypublic boolean isOleSupported()
MimetypeEntryIf the property is true, processes the ole Extraction, otherwise skip.
isOleSupported in interface MimetypeEntryCopyright © 2019 Nuxeo. All rights reserved.