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 an e-book in the EPUB format. Please find more information at <a href="https://en.wikipedia.org/wiki/EPUB">https://en.wikipedia.org/wiki/EPUB</a>.

    • Constructor Detail

      • EpubFormat

        public EpubFormat(String fileName)

        Initializes a new instance of the EpubFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create an EpubFormat instance.
      • EpubFormat

        public EpubFormat(InputStream input)

        Initializes a new instance of the EpubFormat class.

        Parameters:
        input - A stream that contains the data for this EpubFormat.
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • cleanMetadata

        public void cleanMetadata()

        Removes writable metadata properties associated with the file. This feature is not supported for this format.

        Overrides:
        cleanMetadata in class FormatBase
      • getEpubMetadata

        public final EpubMetadata getEpubMetadata()

        Reads metadata of the EPUB file.

        Returns:
        EpubMetadata.


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

      • getDublinCore

        public final DublinCoreMetadata getDublinCore()

        Retrieves the Dublin Core metadata.

        Specified by:
        getDublinCore in interface IDublinCore
        Returns:
        The DublinCoreMetadata if the appropriate package is found; otherwise, null.
      • readThumbnail

        public final ThumbnailMetadata readThumbnail()

        Reads the image cover.

        Returns:
        ThumbnailMetadata.
      • getImageCoverMetadata

        public final Metadata[] getImageCoverMetadata()

        Gets an array of metadata packages 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.