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 EPUB e-booking file format. The structure of the format is ZipFormat. See more: 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 document type.

        Specified by:
        getType in class FormatBase
        Returns:
        Document type.
      • 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.

        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.