com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class EpubFormat

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, IDublinCore, Closeable, AutoCloseable


    public final class EpubFormat
    extends FormatBase
    implements IDublinCore

    Represents the EPUB e-booking file format. The structure of the format is ZipFormat. See more at https://en.wikipedia.org/wiki/EPUB.

    See Also:
    FormatBase
    • Constructor Detail

      • EpubFormat

        public EpubFormat(String fileName)

        Initializes a new instance of the EpubFormat class.

        Parameters:
        fileName - Absolute path to the file.
      • EpubFormat

        public EpubFormat(InputStream input)

        Initializes a new instance of the EpubFormat class.

        Parameters:
        input - File stream.
    • Method Detail

      • getType

        public int getType()

        Gets the document type.

        Specified by:
        getType in class FormatBase
        Returns:
        The document type.
      • cleanMetadata

        public void cleanMetadata()

        Removes the metadata. Not supported for this format.

        Overrides:
        cleanMetadata in class FormatBase
      • getEpubMetadata

        public final EpubMetadata getEpubMetadata()

        Reads metadata of the EPUB format.

        Returns:
        EpubMetadata.


        Reads metadata from the 'metadata' element of the package.

      • getDublinCore

        public final DublinCoreMetadata getDublinCore()

        Reads the Dublin-Core metadata from the 'metadata' element of the package.

        Specified by:
        getDublinCore in interface IDublinCore
        Returns:
        DublinCoreMetadata.


        It is required metadata.

      • readThumbnail

        public final ThumbnailMetadata readThumbnail()

        Reads the image cover.

        Returns:
        ThumbnailMetadata.
      • getImageCoverMetadata

        public final Metadata[] getImageCoverMetadata()

        Gets the array of metadata related to the image cover.

      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and optionally managed resources.

        Overrides:
        dispose in class FormatBase
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.