SMILA 1.0 API documentation

org.eclipse.smila.importing
Interface ContentFetcher

All Known Subinterfaces:
Fetcher, FileCrawlerService
All Known Implementing Classes:
DefaultFetcher, FileCrawlerServiceImpl

public interface ContentFetcher

interface for services that can fetch an input stream to a content object in a data source.


Method Summary
 java.io.InputStream getContent(Record record, TaskContext taskContext)
          get a stream on a content object.
 

Method Detail

getContent

java.io.InputStream getContent(Record record,
                               TaskContext taskContext)
                               throws ImportingException
get a stream on a content object. Make sure to close the stream after usage.

Parameters:
record - a crawled record describing the content object.
taskContext - the TaskContexrt containing job parameters and more
Returns:
content stream
Throws:
ImportingException - error accessing the content object.

SMILA 1.0 API documentation