org.jrdf.util
Interface ClosableIterator<Triple>

All Superinterfaces:
Iterator<Triple>
All Known Subinterfaces:
ClosableMemIterator<Triple>, RDFEventReader, SortedIterator<Triple>
All Known Implementing Classes:
EmptyClosableIterator, GraphIterator, NTriplesEventReader, OneFixedIterator, ThreeFixedIterator, TripleClosableIterator, TwoFixedIterator

public interface ClosableIterator<Triple>
extends Iterator<Triple>

An that intializes objects from a graph one at a time.

The close method indicates that the resources being held by the iterator should be freed. Based on Jena's CloseableIterator class.

Version:
$Id: ClosableIterator.java 1045 2007-01-05 04:56:09Z newmana $
Author:
Andrew Newman

Method Summary
 boolean close()
          Closes the iterator by freeing any resources that it current holds.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

boolean close()
Closes the iterator by freeing any resources that it current holds.

This must be done as soon as possible. Once an iterator is closed none of the operations on a iterator will operate i.e. they will throw an exception.

Returns:
true if it was successfully closed.