F
- the source class of the conversion, i.e. the class of objects returned by the encapsulated extractorT
- the destination class of the conversion, i.e. the class of objects returned by this extractorpublic class ConvertorMultiExtractor<F extends LocalAbstractObject,T extends LocalAbstractObject> extends java.lang.Object implements MultiExtractor<T>
Convertor
to all the objects extracted by the encapsulated MultiExtractor
.Constructor and Description |
---|
ConvertorMultiExtractor(MultiExtractor<? extends F> extractor,
Convertor<F,T> convertor)
Creates a new instance of multi-extractor that applies a
Convertor to all the objects extracted by the encapsulated MultiExtractor . |
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 ConvertorMultiExtractor(MultiExtractor<? extends F> extractor, Convertor<F,T> convertor) throws java.lang.NullPointerException
Convertor
to all the objects extracted by the encapsulated MultiExtractor
.extractor
- the encapsulated multi-extractor that provides the objects to convertconvertor
- the convertor to apply to iterated itemsjava.lang.NullPointerException
- if the given extractor or convertor is nullpublic 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>