|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An iterator which returns RDF Resources.
RDF iterators are similar to standard Java iterators, except that they
return specifically typed objects, in this case RDF Resources
and have a close()
method.
This should be called to free resources
if the application does not complete the iteration.
Method Summary | |
void |
close()
Terminate the iteration and free up resources. |
boolean |
hasNext()
Determine if there any more Resources in the iteration. |
Resource |
next()
Return the next Resource of the iteration. |
void |
remove()
Unsupported Operation. |
Method Detail |
public boolean hasNext() throws RDFException
RDFException
- Generic RDF exception.public Resource next() throws java.util.NoSuchElementException, RDFException
java.util.NoSuchElementException
- if there are no more to be returned.RDFException
- Generic RDF exception.public void remove() throws java.util.NoSuchElementException, RDFException
java.util.NoSuchElementException
- RDFException
- 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |