com.healthmarketscience.rmiio
Interface IOIterator<DataType>

All Known Subinterfaces:
CloseableIOIterator<DataType>, RemoteIterator<DataType>
All Known Implementing Classes:
AbstractCloseableIOIterator, CloseableIOIterator.Adapter, ConverterIOIterator, IOIterator.Adapter, IOIteratorPipe.Source, LineIterator, RemoteIteratorClient, SerialRemoteIteratorClient, SimpleRemoteIterator

public interface IOIterator<DataType>

Interface which mimics the Iterator interface but allows IOExceptions to be thrown by the implementation.

If the implementation needs to implement some sort of cleanup operation, implement CloseableIOIterator instead.

Author:
James Ahlborn

Nested Class Summary
static class IOIterator.Adapter<DataType>
          Deprecated. use RmiioUtil.adapt(java.util.Iterator) instead
 
Method Summary
 boolean hasNext()
          Returns true iff the iteration has more elements.
 DataType next()
          Returns the next element in the iteration.
 

Method Detail

hasNext

boolean hasNext()
                throws IOException
Returns true iff the iteration has more elements.

Throws:
IOException

next

DataType next()
              throws IOException
Returns the next element in the iteration.

Throws:
IOException


Copyright © 2006–2016 Health Market Science. All rights reserved.