org.progeeks.util
Interface CloseableIterator

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

public interface CloseableIterator
extends java.util.Iterator

An iterator specialization that provides a standard way to be closed in cases where the iterator might have underlying resources that would benefit from a timely release.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Method Summary
 void close()
          Releases any underlying resources the iterator implementation may be holding.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

void close()
Releases any underlying resources the iterator implementation may be holding. All implementations should allow the iterator to be closed more than once without causing problems for the caller.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.