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); }
| Modifier and Type | Method and Description |
|---|---|
DublinCorePackage |
getDublinCorePackage()
Gets the Dublin Core metadata package extracted from the e-book.
|
EpubPackage |
getEpubPackage()
Gets the EPUB metadata package.
|
copyTo, getFileType, isLicensed, sanitizeaddProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final DublinCorePackage getDublinCorePackage()
Gets the Dublin Core metadata package extracted from the e-book.
getDublinCorePackage in interface IDublinCorepublic final EpubPackage getEpubPackage()
Gets the EPUB metadata package.
Copyright © 2026. All rights reserved.