com.hp.hpl.jena.rdf.model
Interface StmtIterator

All Superinterfaces:
ClosableIterator, ExtendedIterator, java.util.Iterator

public interface StmtIterator
extends ExtendedIterator

An iterator which returns RDF Statements.

RDF iterators are standard Java iterators, except that they have an extra method to return specifically typed objects, in this case RDF Statements and have a close() method that should be called to free resources if the application does not complete the iteration.

Version:
Release='$Name: $' Revision='$Revision: 1.4 $' Date='$Date: 2003/06/17 14:39:38 $'
Author:
bwm

Method Summary
 Statement nextStatement()
          Return the next Statement of the iteration.
 
Methods inherited from interface com.hp.hpl.jena.util.iterator.ExtendedIterator
andThen, filterDrop, filterKeep, mapWith
 
Methods inherited from interface com.hp.hpl.jena.util.iterator.ClosableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextStatement

public Statement nextStatement()
                        throws java.util.NoSuchElementException
Return the next Statement of the iteration.

Returns:
The next Resource from the iteration.
Throws:
java.util.NoSuchElementException - if there are no more to be returned.


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.