public class MetadataExtractor extends Object
Provides the functionality to extract the metadata.
Modifier | Constructor and Description |
---|---|
protected |
MetadataExtractor()
Initializes a new instance of the
MetadataExtractor class. |
Modifier and Type | Method and Description |
---|---|
MetadataCollection |
extractMetadata(InputStream stream)
Extracts the metadata from the
stream . |
MetadataCollection |
extractMetadata(InputStream stream,
LoadOptions loadOptions)
Extracts the metadata from the
stream . |
MetadataCollection |
extractMetadata(String fileName)
Extracts the metadata from the
fileName . |
MetadataCollection |
extractMetadata(String fileName,
LoadOptions loadOptions)
Extracts the metadata from the
fileName . |
protected MetadataCollection |
extractMetadataFromStream(InputStream stream,
LoadOptions loadOptions)
Extracts the metadata from the
stream . |
protected MetadataExtractor()
Initializes a new instance of the MetadataExtractor
class.
public MetadataCollection extractMetadata(InputStream stream)
Extracts the metadata from the stream
.
stream
- The stream of the document.ArgumentNullException
- stream
is null.public MetadataCollection extractMetadata(InputStream stream, LoadOptions loadOptions)
Extracts the metadata from the stream
.
stream
- The stream of the document.loadOptions
- The options of loading the file.ArgumentNullException
- stream
is null.public MetadataCollection extractMetadata(String fileName)
Extracts the metadata from the fileName
.
fileName
- The path to the file.ArgumentNullException
- fileName
is null.public MetadataCollection extractMetadata(String fileName, LoadOptions loadOptions)
Extracts the metadata from the fileName
.
fileName
- The path to the file.loadOptions
- The options of loading the file.ArgumentNullException
- fileName
is null.protected MetadataCollection extractMetadataFromStream(InputStream stream, LoadOptions loadOptions)
Extracts the metadata from the stream
.
stream
- The stream of the document.loadOptions
- The options of loading the file.
Copyright © 2018. All rights reserved.