public final class CellsMetadataExtractor extends MetadataExtractor
Provides the functionality to extract the metadata from spreadsheets.
Supported formats:
.XLS | Microsoft Excel Spreadsheet |
.XLSX | Microsoft Office Open XML Workbook |
.XLSM | Microsoft Excel 2007 Macro-Enabled Workbook |
.XLSB | Microsoft Excel 2007 Binary Workbook |
.ODS | OpenDocument 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 and Description |
---|
CellsMetadataExtractor()
Initializes a new instance of the
CellsMetadataExtractor 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 CellsMetadataExtractor()
Initializes a new instance of the CellsMetadataExtractor
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.