org.semanticdesktop.aperture.extractor
Interface ExtractorRegistry

All Known Implementing Classes:
DefaultExtractorRegistry, ExtractorRegistryImpl

public interface ExtractorRegistry

An ExtractorRegistry serves as a central registry for registering and obtaining ExtractorFactories.


Method Summary
 void add(ExtractorFactory factory)
          Adds an ExtractorFactory to this registry.
 void add(FileExtractorFactory factory)
          Adds a file extractor factory to this registry.
 Set get(String mimeType)
          Deprecated. Use getExtractorFactories instead. After the introduction of FileExtractorFactories the semantics of this method may have become unclear. It returns normal stream-based extractor factories. The result is the same as getExtractorFactories(java.lang.String)
 Set getAll()
          Deprecated. Use getAllExtractorFactories instead. After the introduction of FileExtractorFactories the semantics of this method may have become unclear. It returns normal stream-based extractor factories. The result is the same as getAllExtractorFactories()
 Set getAllExtractorFactories()
          Returns all ExtractorFactories registered in this ExtractorRegistry.
 Set getAllFileExtractorFactories()
          Returns all FileExtractorFactories registered in this ExtractorRegistry.
 Set getExtractorFactories(String mimeType)
          Returns all ExtractorFactories that support the specified MIME type.
 Set getFileExtractorFactories(String mimeType)
          Returns all FileExtractorFactories that support the specified MIME type.
 void remove(ExtractorFactory factory)
          Removes an ExtractorFactory from this registry.
 void remove(FileExtractorFactory factory)
          Remove a FileExtractorFactory from this registry.
 

Method Detail

add

void add(ExtractorFactory factory)
Adds an ExtractorFactory to this registry.


remove

void remove(ExtractorFactory factory)
Removes an ExtractorFactory from this registry.


add

void add(FileExtractorFactory factory)
Adds a file extractor factory to this registry.


remove

void remove(FileExtractorFactory factory)
Remove a FileExtractorFactory from this registry.


get

Set get(String mimeType)
Deprecated. Use getExtractorFactories instead. After the introduction of FileExtractorFactories the semantics of this method may have become unclear. It returns normal stream-based extractor factories. The result is the same as getExtractorFactories(java.lang.String)

Returns all ExtractorFactories that support the specified MIME type.

Returns:
A Set of ExtractorFactories whose getSupportedMimeTypes method results contain the specified MIME type.

getAll

Set getAll()
Deprecated. Use getAllExtractorFactories instead. After the introduction of FileExtractorFactories the semantics of this method may have become unclear. It returns normal stream-based extractor factories. The result is the same as getAllExtractorFactories()

Returns all ExtractorFactories registered in this ExtractorRegistry.

Returns:
A Set of ExtractorFactory instances.

getExtractorFactories

Set getExtractorFactories(String mimeType)
Returns all ExtractorFactories that support the specified MIME type.

Returns:
A Set of ExtractorFactories whose getSupportedMimeTypes method results contain the specified MIME type.

getAllExtractorFactories

Set getAllExtractorFactories()
Returns all ExtractorFactories registered in this ExtractorRegistry.

Returns:
A Set of ExtractorFactory instances.

getFileExtractorFactories

Set getFileExtractorFactories(String mimeType)
Returns all FileExtractorFactories that support the specified MIME type.

Returns:
A Set of ExtractorFactories whose getSupportedMimeTypes method results contain the specified MIME type.

getAllFileExtractorFactories

Set getAllFileExtractorFactories()
Returns all FileExtractorFactories registered in this ExtractorRegistry.

Returns:
A Set of ExtractorFactory instances.


Copyright © 2010 Aperture Development Team. All Rights Reserved.