Class MimetypeEntryImpl

    • Field Detail

      • extensions

        protected final List<String> extensions
      • iconPath

        protected final String iconPath
      • binary

        protected final boolean binary
      • onlineEditable

        protected final boolean onlineEditable
      • oleSupported

        protected final boolean oleSupported
      • mimetypes

        protected final List<String> mimetypes
      • normalized

        protected final String normalized
    • Constructor Detail

      • MimetypeEntryImpl

        public MimetypeEntryImpl​(String normalized,
                                 List<String> mimetypes,
                                 List<String> extensions,
                                 String iconPath,
                                 boolean binary,
                                 boolean onlineEditable,
                                 boolean oleSupported)
    • Method Detail

      • getExtensions

        public List<String> getExtensions()
        Description copied from interface: MimetypeEntry
        Returns the list of extensions for this mimetype.
        Specified by:
        getExtensions in interface MimetypeEntry
        Returns:
        list of strings that contain different mimetypes
      • getMimetypes

        public List<String> getMimetypes()
        Description copied from interface: MimetypeEntry
        Returns the mimetype's names.
        Specified by:
        getMimetypes in interface MimetypeEntry
        Returns:
        list of strings containing the mimetype names
      • getNormalized

        public String 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 interface MimetypeEntry
        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 interface MimetypeEntry
        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 interface MimetypeEntry
        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 interface MimetypeEntry
        Returns:
        boolean