SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.compound
Class AbstractCompoundHandler

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.compound.AbstractCompoundHandler
All Implemented Interfaces:
CompoundHandler
Direct Known Subclasses:
ZipCompoundHandler

public abstract class AbstractCompoundHandler
extends java.lang.Object
implements CompoundHandler

Abstract base class for CompoundHandlers. Provides implementations for CompoundCrawler instance creation.


Constructor Summary
AbstractCompoundHandler()
           
 
Method Summary
 Crawler extract(Record record, DataSourceConnectionConfig config)
          Extracts the elements of the given record and returns a Crawler over the extracted elements.
 void setCompoundCrawlerFactory(ComponentFactory factory)
          Sets the CompoundCrawler ComponentFactory.
 void unsetCompoundCrawlerFactory(ComponentFactory factory)
          Un-sets the CompoundCrawler ComponentFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.smila.connectivity.framework.compound.CompoundHandler
getSupportedMimeTypes
 

Constructor Detail

AbstractCompoundHandler

public AbstractCompoundHandler()
Method Detail

setCompoundCrawlerFactory

public final void setCompoundCrawlerFactory(ComponentFactory factory)
Sets the CompoundCrawler ComponentFactory. Used by OSGi Declarative Services.

Parameters:
factory - the CompoundCrawler ComponentFactory to add

unsetCompoundCrawlerFactory

public final void unsetCompoundCrawlerFactory(ComponentFactory factory)
Un-sets the CompoundCrawler ComponentFactory. Used by OSGi Declarative Services.

Parameters:
factory - the CompoundCrawler ComponentFactory to remove

extract

public final Crawler extract(Record record,
                             DataSourceConnectionConfig config)
                      throws CompoundException
Extracts the elements of the given record and returns a Crawler over the extracted elements.

Specified by:
extract in interface CompoundHandler
Parameters:
record - the Record
config - the DataSourceConnectionConfig
Returns:
a Crawler interface over the extracted elements
Throws:
CompoundException - if any error occurs
See Also:
CompoundHandler.extract(Record, DataSourceConnectionConfig)

SMILA 1.0 API documentation