T
- the type of object
that is extracted by this extractorpublic class StoringMultiExtractor<T extends LocalAbstractObject> extends java.lang.Object implements MultiExtractor<T>
Constructor and Description |
---|
StoringMultiExtractor(MultiExtractor<T> extractor,
StorageIndexed<? super ExtractorDataSource> storage)
Creates a new instance of StoringMultiExtractor.
|
StoringMultiExtractor(MultiExtractor<T> extractor,
java.lang.String dbConnUrl,
java.lang.String tableName)
Creates a new instance of StoringMultiExtractor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
extract(ExtractorDataSource dataSource)
Extracts multiple
LocalAbstractObject s from the specified binary data source. |
java.lang.Class<? extends T> |
getExtractedClass()
Returns the object class extracted by this extractor.
|
public StoringMultiExtractor(MultiExtractor<T> extractor, StorageIndexed<? super ExtractorDataSource> storage)
extractor
- the encapsulated extractor that is used to perform the actual extractionstorage
- the external storage where the extracted binary data are storedpublic StoringMultiExtractor(MultiExtractor<T> extractor, java.lang.String dbConnUrl, java.lang.String tableName) throws java.lang.IllegalArgumentException, java.sql.SQLException
extractor
- the encapsulated extractor that is used to perform the actual extractiondbConnUrl
- the database connection stringtableName
- the table in the database where the extracted data will be stored using
"locator" column (string) and "content" column (blob)java.sql.SQLException
java.lang.IllegalArgumentException
public java.util.Iterator<T> extract(ExtractorDataSource dataSource) throws ExtractorException, java.io.IOException
MultiExtractor
LocalAbstractObject
s from the specified binary data source.extract
in interface MultiExtractor<T extends LocalAbstractObject>
dataSource
- the source of binary data for the extractionExtractorException
- if the extractor encountered problem
extracting the object from the binary datajava.io.IOException
- if there was a problem reading data from the dataSource
public java.lang.Class<? extends T> getExtractedClass()
MultiExtractor
getExtractedClass
in interface MultiExtractor<T extends LocalAbstractObject>