|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.util.iterator.NiceIterator
com.hp.hpl.jena.util.iterator.WrappedIterator
public class WrappedIterator
a WrappedIterator is an ExtendedIterator wrapping around a plain (or
presented as plain) Iterator. The wrapping allows the usual extended
operations (filtering, concatenating) to be done on an Iterator derived
from some other source.
| Method Summary | |
|---|---|
void |
close()
close: defer to the base, iff it is closable |
static void |
close(Iterator it)
if _it_ is a Closableiterator, close it. |
static ExtendedIterator |
create(Iterator it)
factory method for creating a wrapper around _it_. |
static WrappedIterator |
createNoRemove(Iterator it)
|
boolean |
hasNext()
hasNext: defer to the base iterator |
Object |
next()
next: defer to the base iterator |
void |
remove()
if .remove() is allowed, delegate to the abse iterator's .remove; otherwise, throw an UnsupportedOperationException. |
| Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
|---|
andThen, andThen, filterDrop, filterKeep, mapWith, removeNext |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExtendedIterator create(Iterator it)
public static WrappedIterator createNoRemove(Iterator it)
public boolean hasNext()
hasNext in interface IteratorhasNext in class NiceIteratorpublic Object next()
next in interface Iteratornext in class NiceIteratorpublic void remove()
remove in interface Iteratorremove in class NiceIteratorpublic void close()
close in interface ClosableIteratorclose in class NiceIteratorpublic static void close(Iterator it)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||