Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.content.metadata
Class MetadataExtracterRegistry
java.lang.Object
  org.alfresco.repo.content.metadata.MetadataExtracterRegistry

@org.alfresco.api.AlfrescoPublicApi
public class MetadataExtracterRegistry
extends Object
Holds and provides the most appropriate metadate extracter for a particular mimetype.

The extracters themselves know how well they are able to extract metadata.

Author:
Jesper Steen Møller
See Also:
MetadataExtracter

Constructor Summary
MetadataExtracterRegistry()
Method Summary
getEmbedder(String sourceMimetype)
          Gets the best metadata embedder.
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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
MetadataExtracterRegistry
public MetadataExtracterRegistry()
Method Detail
resetCache
public void resetCache()
Force the registry to drop its cache of extractors. This is useful for the case where an extractor becomes available only after the registry has initialized the cache.

register
public void register(MetadataExtracter extracter)
Register an instance of an extracter for use
Parameters:
extracter - an extracter

getExtracter
public MetadataExtracter getExtracter(String sourceMimetype)
Gets the best metadata extracter. This is a combination of the most reliable and the most performant extracter.

The result is cached for quicker access next time.

Parameters:
sourceMimetype - the source MIME of the extraction
Returns:
Returns a metadata extracter that can extract metadata from the chosen MIME type.

getEmbedder
public MetadataEmbedder getEmbedder(String sourceMimetype)
Gets the best metadata embedder. This is a combination of the most reliable and the most performant embedder.

The result is cached for quicker access next time.

Parameters:
sourceMimetype - the source MIME of the extraction
Returns:
Returns a metadata embedder that can embed metadata in the chosen MIME type.

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.