org.openanzo.jdbc.utils
Class IteratorUtils

java.lang.Object
  extended by org.openanzo.jdbc.utils.IteratorUtils

public class IteratorUtils
extends java.lang.Object

Convenience methods for working with iterators.

Author:
Joe Betz

Constructor Summary
IteratorUtils()
           
 
Method Summary
static void close(java.util.Iterator<?> iterator)
          Makes a best effort to close any closable iterator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorUtils

public IteratorUtils()
Method Detail

close

public static void close(java.util.Iterator<?> iterator)
Makes a best effort to close any closable iterator. Can close iterators nested in IteratorChain, TransformIterator, FilterIterator and CollatingIterator instances.

Parameters:
iterator - The iterator to close.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.