Interface MimetypeEntry

All Superinterfaces:
Serializable
All Known Implementing Classes:
MimetypeEntryImpl

public interface MimetypeEntry extends Serializable
MimetypeEntry entry.

Holds meta information about a mimetype.

Author:
Julien Anguenot, Laurent Godard
  • Method Details

    • getMimetypes

      List<String> 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

      List<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