public interface MDExtractorPlugin extends TechnicalMDExtractorPlugin
Interface for metadata extractors.
Each extractor handles a specific format and extracts its attributes.
This plugin interface only supports java implementation.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormatName()
Returns the format name of the file that is fetched by the extraction.
|
java.lang.String |
getFormatVersion()
Returns the format version of the file that is fetched by the extraction.
|
java.lang.Integer |
getImageCount()
This method is relevant only for image extractors.
|
java.lang.String |
getMimeType()
Returns the MIME type of the file that is fetched by the extraction.
|
default java.lang.String |
getProfile()
Extracts a file's attributes according to the given file path.
|
boolean |
isValid()
Implementation of a general file validation.
|
boolean |
isWellFormed()
Implementation of a file formed check.
|
extract, getAgent, getAttributeByName, getExtractionErrorIds, getExtractionErrors, getSupportedAttributeNames
default java.lang.String getProfile()
file
- the file path to extractjava.lang.Exception
- if an unexpected exception occurs, such as IOException.java.lang.String getFormatName()
java.lang.String getFormatVersion()
java.lang.String getMimeType()
java.lang.Integer getImageCount()
boolean isValid()
boolean isWellFormed()