org.semanticdesktop.aperture.extractor
Interface FileExtractorFactory

All Known Implementing Classes:
MP3FileExtractorFactory

public interface FileExtractorFactory

A FileExtractorFactory create instances of a specific FileExtractor implementation. As such, it embodies knowledge about whether a singleton or unique instances are best returned and for which MIME types the FileExtractors can be used.

FileExtractorFactories should be very light-weight to create. This allows them to be used for service registration in service-oriented architectures.


Method Summary
 FileExtractor get()
          Returns an instance of the represented FileExtractor implementation.
 Set getSupportedMimeTypes()
          Returns the MIME types of the formats supported by the returned FileExtractor.
 

Method Detail

get

FileExtractor get()
Returns an instance of the represented FileExtractor implementation. Subsequent invocations may or may not return the same instance.

Returns:
An instance of the FileExtractor interface.

getSupportedMimeTypes

Set getSupportedMimeTypes()
Returns the MIME types of the formats supported by the returned FileExtractor.

Returns:
A Set of Strings.


Copyright © 2010 Aperture Development Team. All Rights Reserved.