org.openstreetmap.osmosis.core.store
Class ObjectDataInputIterator<T>

java.lang.Object
  extended by org.openstreetmap.osmosis.core.store.ObjectDataInputIterator<T>
Type Parameters:
T - The type of data to be returned by the iterator.
All Implemented Interfaces:
java.util.Iterator<T>
Direct Known Subclasses:
ObjectStreamIterator

public class ObjectDataInputIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Provides functionality common to all object iterators.

Author:
Brett Henderson

Constructor Summary
ObjectDataInputIterator(ObjectReader objectReader)
          Creates a new instance.
 
Method Summary
 boolean hasNext()
          
 T next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectDataInputIterator

public ObjectDataInputIterator(ObjectReader objectReader)
Creates a new instance.

Parameters:
objectReader - The reader containing the objects to be deserialized.
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()

Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<T>