com.hp.hpl.mesa.rdf.jena.common
Class StmtIteratorImpl
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.StmtIteratorImpl
- All Implemented Interfaces:
- StmtIterator
- public class StmtIteratorImpl
- extends java.lang.Object
- implements StmtIterator
An implementation of StmtIterator.
- Version:
- Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/09/23 17:53:16 $'
- Author:
- bwm
Constructor Summary |
StmtIteratorImpl(java.util.Iterator iterator,
java.lang.Object object)
Creates new StmtIteratorImpl |
Method Summary |
void |
close()
Terminate the iteration and free up resources. |
boolean |
hasNext()
Determine if there any more Statements in the iteration. |
Statement |
next()
Return the next Statement of the iteration. |
void |
remove()
Remove the most recently returned Statement from its associated model. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StmtIteratorImpl
public StmtIteratorImpl(java.util.Iterator iterator,
java.lang.Object object)
- Creates new StmtIteratorImpl
hasNext
public boolean hasNext()
throws RDFException
- Description copied from interface:
StmtIterator
- Determine if there any more Statements in the iteration.
- Specified by:
hasNext
in interface StmtIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.StmtIterator
- Returns:
- true if and only if there are more Statements available
from the iteration.
- Throws:
RDFException
- Generic RDF exception.
next
public Statement next()
throws java.util.NoSuchElementException,
RDFException
- Description copied from interface:
StmtIterator
- Return the next Statement of the iteration.
- Specified by:
next
in interface StmtIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.StmtIterator
- Returns:
- The next Resource from the iteration.
- Throws:
java.util.NoSuchElementException
- if there are no more to be returned.RDFException
- Generic RDF exception.
remove
public void remove()
throws java.util.NoSuchElementException,
RDFException
- Description copied from interface:
StmtIterator
- Remove the most recently returned Statement from its associated model.
- Specified by:
remove
in interface StmtIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.StmtIterator
- Throws:
java.util.NoSuchElementException
- thrown if no Statement has been returned.RDFException
- Generic RDF exception.
close
public void close()
throws RDFException
- Description copied from interface:
StmtIterator
- Terminate the iteration and free up resources.
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.
- Specified by:
close
in interface StmtIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.StmtIterator
- Throws:
RDFException
- Generic RDF exception.
Copyright © 2001 Hewlett-Packard. All Rights Reserved.