EpubRootPackage
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage
All Implemented Interfaces: com.groupdocs.metadata.core.IDublinCore
public class EpubRootPackage extends RootMetadataPackage implements IDublinCore
Represents the root package allowing working with metadata in an EPUB e-book.
Learn more
This code sample shows how to read EPUB format-specific metadata properties.
try (Metadata metadata = new Metadata(Constants.InputEpub)) { EpubRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getEpubPackage().getVersion()); System.out.println(root.getEpubPackage().getUniqueIdentifier()); System.out.println(root.getEpubPackage().getImageCover() != null ? root.getEpubPackage().getImageCover().length : 0); }
Methods
Method | Description |
---|---|
getEpubPackage() | Gets the EPUB metadata package. |
getDublinCorePackage() | Gets the Dublin Core metadata package extracted from the e-book. |
getEpubPackage()
public final EpubPackage getEpubPackage()
Gets the EPUB metadata package.
Returns: EpubPackage - The EPUB metadata package.
getDublinCorePackage()
public final DublinCorePackage getDublinCorePackage()
Gets the Dublin Core metadata package extracted from the e-book.
Returns: DublinCorePackage - The Dublin Core metadata package extracted from the e-book.