com.hp.hpl.mesa.rdf.jena.model
Interface ClosableIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
ResultSetIterator

public interface ClosableIterator
extends java.util.Iterator

An iterator which should be closed after use

Some iterators take up resources which should be free'd as soon as possible, i.e. without waiting for the garbage collector to call the the finalizer.

Implementors of this interface are expected to close automatically if if the iterator iterates to completion, i.e. more() will return false.

Version:
Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/09/25 14:52:10 $'
Author:
bwm

Method Summary
 void close()
          Close the iterator
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

public void close()
Close the iterator


Copyright © 2001 Hewlett-Packard. All Rights Reserved.