|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.store.ObjectDataInputIterator<T>
org.openstreetmap.osmosis.core.store.ObjectStreamIterator<T>
org.openstreetmap.osmosis.core.store.SubObjectStreamIterator<T>
T - The type of data to be returned by the iterator.public class SubObjectStreamIterator<T extends Storeable>
This class reads objects from an ObjectInputStream until the end of stream is reached or a maximum number of objects is reached.
| Constructor Summary | |
|---|---|
SubObjectStreamIterator(java.io.DataInputStream inStream,
ObjectReader objectReader,
long maxObjectCount)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
| Methods inherited from class org.openstreetmap.osmosis.core.store.ObjectStreamIterator |
|---|
release |
| Methods inherited from class org.openstreetmap.osmosis.core.store.ObjectDataInputIterator |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
|---|
remove |
| Constructor Detail |
|---|
public SubObjectStreamIterator(java.io.DataInputStream inStream,
ObjectReader objectReader,
long maxObjectCount)
inStream - The stream to read objects from.objectReader - The reader containing the objects to be deserialized.maxObjectCount - The maximum number of objects to read.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T extends Storeable>hasNext in class ObjectDataInputIterator<T extends Storeable>public T next()
next in interface java.util.Iterator<T extends Storeable>next in class ObjectDataInputIterator<T extends Storeable>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||