@AlfrescoPublicApi public class MetadataExtracterRegistry extends Object
The extracters themselves know how well they are able to extract metadata.
MetadataExtracter
Constructor and Description |
---|
MetadataExtracterRegistry() |
Modifier and Type | Method and Description |
---|---|
MetadataEmbedder |
getEmbedder(String sourceMimetype)
Gets the best metadata embedder.
|
MetadataExtracter |
getExtracter(String sourceMimetype)
Gets the best metadata extracter.
|
void |
register(MetadataExtracter extracter)
Register an instance of an extracter for use
|
void |
resetCache()
Force the registry to drop its cache of extractors.
|
public void resetCache()
public void register(MetadataExtracter extracter)
extracter
- an extracterpublic MetadataExtracter getExtracter(String sourceMimetype)
The result is cached for quicker access next time.
sourceMimetype
- the source MIME of the extractionpublic MetadataEmbedder getEmbedder(String sourceMimetype)
The result is cached for quicker access next time.
sourceMimetype
- the source MIME of the extractionCopyright © 2005–2017 Alfresco Software. All rights reserved.