T - the type of objects that are to be transformedS - the resulting type of the transformed objectspublic abstract class AbstractIteratorTransformer<T,S> extends Object implements ITransformer<Iterator<T>,Iterator<S>>
| Constructor and Description |
|---|
AbstractIteratorTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<S> |
transform(Iterator<T> elements)
Transforms an extracted element to a document that can be loaded.
|
protected abstract S |
transformElement(T source)
Transforms a single element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, initprotected abstract S transformElement(T source) throws TransformerException
source - a single elementTransformerException - thrown when an element cannot be transformedpublic Iterator<S> transform(Iterator<T> elements) throws TransformerException
ITransformertransform in interface ITransformer<Iterator<T>,Iterator<S>>elements - an extracted elementTransformerException - thrown when an element cannot be transformedCopyright © 2017–2019. All rights reserved.