public interface 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 |
---|---|
void |
extract(java.lang.String file)
Extracts a file's attributes according to the given file path.
|
java.lang.String |
getAgent()
Returns the software agent key compatible with the application key in the application library.
|
java.lang.String |
getAttributeByName(java.lang.String attributeName)
Returns the attribute value according to the given attribute name.
|
default java.util.List<java.lang.String> |
getExtractionErrorIds()
Return extraction errors ids.
|
java.util.List<java.lang.String> |
getExtractionErrors()
Return extraction errors.
|
java.util.List<java.lang.String> |
getSupportedAttributeNames()
Returns a list of all attributes that are supported by the extractor implementation.
|
void extract(java.lang.String file) throws java.lang.Exception
file
- the file path to extractjava.lang.Exception
- if an unexpected exception occurs, such as IOException.java.lang.String getAttributeByName(java.lang.String attributeName)
attributeName
- java.util.List<java.lang.String> getSupportedAttributeNames()
java.lang.String getAgent()
java.util.List<java.lang.String> getExtractionErrors()
default java.util.List<java.lang.String> getExtractionErrorIds()