public final class FictionBookMetadataExtractor extends MetadataExtractor
Provides the functionality to extract the metadata from FB2 (FictionBook) documents.
Extracting the metadata:
// Create a metadata extractor for FB2 (FictionBook) documents
MetadataExtractor metadataExtractor = new FictionBookMetadataExtractor();
// Extract a metadata from the stream
MetadataCollection metadata = metadataExtractor.extractMetadata(stream);
Constructor and Description |
---|
FictionBookMetadataExtractor()
Initializes a new instance of the
FictionBookMetadataExtractor class. |
Modifier and Type | Method and Description |
---|---|
protected MetadataCollection |
extractMetadataFromStream(InputStream stream,
LoadOptions loadOptions)
Extracts the metadata from the
stream . |
extractMetadata, extractMetadata, extractMetadata, extractMetadata
public FictionBookMetadataExtractor()
Initializes a new instance of the FictionBookMetadataExtractor
class.
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.
Copyright © 2019. All rights reserved.