com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class FictionBookMetadataExtractor



  • 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 Detail

      • FictionBookMetadataExtractor

        public FictionBookMetadataExtractor()

        Initializes a new instance of the FictionBookMetadataExtractor class.

    • Method Detail

      • extractMetadataFromStream

        protected MetadataCollection extractMetadataFromStream(InputStream stream,
                                                   LoadOptions loadOptions)

        Extracts the metadata from the stream.

        Overrides:
        extractMetadataFromStream in class MetadataExtractor
        Parameters:
        stream - The stream of the document.
        loadOptions - The options of loading the file.


        This method must be override in the inherited classes.

        Returns:
        A collection of the metadata.