com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class EpubFormat

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public final class EpubFormat
    extends FormatBase

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

    See Also:
    GroupDocs.Metadata.Formats.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 document type.

        Value: Document type.
        Specified by:
        getType in class FormatBase
      • cleanMetadata

        public void cleanMetadata()

        Removes metadata. Not supported for this format.


        Metadata cleaning of this format will be supported in future versions.

        Overrides:
        cleanMetadata in class FormatBase
      • getEpubMetadata

        public final EpubMetadata getEpubMetadata()

        Reads metadata of EPUB format. It does not contain Dublin Core metadata. To read DC see GetDublinCore.

        Returns:
        EpubMetadata.


        Reads metadata from 'metadata' element of package except Dublin Core.

      • getDublinCore

        public final DublinCoreMetadata getDublinCore()

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

        Returns:
        DublinCoreMetadata.


        It is required metadata.

      • getImageCoverBytes

        public final byte[] getImageCoverBytes()

        Gets the image cover of EPUB book.

        Returns:
        Array of byte.


        This feature is not supported in trial mode.

      • getImageCoverMetadata

        public final Metadata[] getImageCoverMetadata()

        Gets the array of metadata related to the image cover.