|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hp.hpl.jena.util.NodeIteratorWrapper
A wrapper for NodeIterator that turns it into a standard Java iterator. Clumsy name, and anyway the need for it may go away in a future version of Jena.
| Constructor Summary | |
NodeIteratorWrapper(NodeIterator nIterator)
Construct an iterator to map a node iterator to a standard java iterator |
|
| Method Summary | |
void |
close()
Terminate the iteration and free up resources. |
boolean |
hasNext()
Determine if there any more Nodes in the iteration. |
java.lang.Object |
next()
Return the next Node of the iteration. |
void |
remove()
Unsupported Operation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NodeIteratorWrapper(NodeIterator nIterator)
nIterator - The NodeIterator we want to wrap| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iterator
public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementException - if there are no more to be returned.
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iterator{@link - java.lang.UnsupportedOperationException}
java.lang.UnsupportedOperationException
public void close()
throws RDFException
Some implementations, e.g. on relational databases, hold resources while the iterator still exists. These will normally be freed when the iteration completes. However, if an application wishes to ensure they are freed without completing the iteration, this method should be called.
RDFException - Generic RDF exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||