com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class CellsMetadataExtractor



  • public final class CellsMetadataExtractor
    extends MetadataExtractor

    Provides the functionality to extract the metadata from spreadsheets.


    Supported formats:

    .XLSMicrosoft Excel Spreadsheet
    .XLSXMicrosoft Office Open XML Workbook
    .XLSMMicrosoft Excel 2007 Macro-Enabled Workbook
    .XLSBMicrosoft Excel 2007 Binary Workbook
    .ODSOpenDocument spreadsheet

    Extracting the metadata:

     // Create a metadata extractor for spreadsheets
     CellsMetadataExtractor metadataExtractor = new CellsMetadataExtractor();
     // Extract a metadata from the stream
     MetadataCollection metadata = metadataExtractor.extractMetadata(stream);
      
    • Constructor Detail

      • CellsMetadataExtractor

        public CellsMetadataExtractor()

        Initializes a new instance of the CellsMetadataExtractor 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.