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

All Superinterfaces:
com.hp.hpl.jena.util.iterator.ClosableIterator<Statement>, com.hp.hpl.jena.util.iterator.ExtendedIterator<Statement>, Iterator<Statement>

public interface StmtIterator
extends com.hp.hpl.jena.util.iterator.ExtendedIterator<Statement>

An iterator which returns RDF Statements.

RDF iterators are standard Java iterators, except that they have extras 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: not supported by cvs2svn $' Revision='$Revision: 1.1 $' Date='$Date: 2009-06-29 08:55: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, removeNext, toList, toSet
 
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

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

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


Licenced under the Apache License, Version 2.0