com.healthmarketscience.rmiio
Class RmiioUtil

java.lang.Object
  extended by com.healthmarketscience.rmiio.RmiioUtil

public class RmiioUtil
extends Object

Utility methods for working with rmiio classes.

Author:
James Ahlborn

Method Summary
static
<T> CloseableIOIterator<T>
adapt(Iterator<? extends T> iter)
          Adapts an Iterator to the CloseableIOIterator interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

adapt

public static <T> CloseableIOIterator<T> adapt(Iterator<? extends T> iter)
Adapts an Iterator to the CloseableIOIterator interface. If the given iterator implements Closeable, it will be closed by a close call on the wrapper. The wrapper implementation is a subclass of AbstractCloseableIOIterator, so the iterator will automagically be closed if used with a SerialRemoteIteratorServer.



Copyright © 2006-2012 Health Market Science. All Rights Reserved.