public final class EpubMetadataExtractor extends ComplexMetadataExtractor
Provides the functionality to extract the metadata from EPUB documents.
Extracting the metadata:
// Create a metadata extractor for EPUB documents
MetadataExtractor metadataExtractor = new EpubMetadataExtractor();
// Extract a metadata from the stream
MetadataCollection metadata = metadataExtractor.extractMetadata(stream);
Constructor and Description |
---|
EpubMetadataExtractor()
Initializes a new instance of the
EpubMetadataExtractor class. |
Modifier and Type | Method and Description |
---|---|
protected Enumeration<MetadataCollection> |
extractComplexMetadataFromStream(InputStream stream,
LoadOptions loadOptions)
Extracts the complex metadata from the
stream . |
protected MetadataCollection |
extractMetadataFromStream(InputStream stream,
LoadOptions loadOptions)
Extracts the metadata from the
stream . |
extractComplexMetadata, extractComplexMetadata, extractComplexMetadata, extractComplexMetadata
extractMetadata, extractMetadata, extractMetadata, extractMetadata
public EpubMetadataExtractor()
Initializes a new instance of the EpubMetadataExtractor
class.
protected Enumeration<MetadataCollection> extractComplexMetadataFromStream(InputStream stream, LoadOptions loadOptions)
Extracts the complex metadata from the stream
.
extractComplexMetadataFromStream
in class ComplexMetadataExtractor
stream
- The stream of the document.loadOptions
- The options of loading the file.protected MetadataCollection extractMetadataFromStream(InputStream stream, LoadOptions loadOptions)
Extracts the metadata from the stream
.
extractMetadataFromStream
in class MetadataExtractor
stream
- The stream of the document.loadOptions
- The options of loading the file.