org.dom4j.tree
public abstract class FilterIterator extends Object implements Iterator
Deprecated: THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!
FilterIterator is an abstract base class which is useful for
implementors of Iteratorwhich filter an existing iterator.
Version: $Revision: 1.10 $
| Field Summary | |
|---|---|
| protected Iterator | proxy |
| Constructor Summary | |
|---|---|
| FilterIterator(Iterator proxy) | |
| Method Summary | |
|---|---|
| protected Object | findNext() |
| boolean | hasNext() |
| protected abstract boolean | matches(Object element)
Filter method to perform some matching on the given element.
|
| Object | next() |
| void | remove()
Always throws UnsupportedOperationException as this class does look-ahead
with its internal iterator.
|
Parameters: element DOCUMENT ME!
Returns: true if the given element matches the filter and should be appear in the iteration
Throws: UnsupportedOperationException always