org.semanticdesktop.aperture.extractor
Interface ExtractorFactory

All Known Implementing Classes:
ExcelExtractorFactory, HtmlExtractorFactory, JpgExtractorFactory, MimeExtractorFactory, OfficeExtractorFactory, OOXMLExcelExtractorFactory, OOXMLPowerPointExtractorFactory, OOXMLWordExtractorFactory, OpenDocumentExtractorFactory, OpenXmlExtractorFactory, PdfExtractorFactory, PlainTextExtractorFactory, PowerPointExtractorFactory, PresentationsExtractorFactory, PublisherExtractorFactory, QuattroExtractorFactory, RtfExtractorFactory, VisioExtractorFactory, WordExtractorFactory, WordPerfectExtractorFactory, WorksExtractorFactory, XmlExtractorFactory, XMPExtractorFactory

public interface ExtractorFactory

An ExtractorFactory create instances of a specific Extractor implementation. As such, it embodies knowledge about whether a singleton or unique instances are best returned and for which MIME types the Extractors can be used.

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


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

Method Detail

get

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

Returns:
An instance of the Extractor interface.

getSupportedMimeTypes

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

Returns:
A Set of Strings.


Copyright © 2010 Aperture Development Team. All Rights Reserved.