T - The type of BaseEntity to iterate.public class StreamFixedListRangeIterator<T> extends Object implements IClosableIterator<T>
Objects of this class should not be created directly as they are part of the internal logic.
| Constructor and Description |
|---|
StreamFixedListRangeIterator(BaseEntityFactory<T> entityFactory,
Dataset dataSet,
int startPosition,
int startIndex,
int count)
An enumerable that can be used to read through the entries.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Returns the reader to the pool.
|
boolean |
hasNext() |
T |
next() |
void |
remove()
Unsupported, do not use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic StreamFixedListRangeIterator(BaseEntityFactory<T> entityFactory, Dataset dataSet, int startPosition, int startIndex, int count) throws IOException
count - of the number of items to returnentityFactory - to create new items of the type requireddataSet - the entities returned will relate tostartIndex - of the item in the fixed liststartPosition - of the first byte in the byte streamIOException - if there was a problem accessing data file.public void close()
close in interface IClosableIterator<T>public boolean hasNext()
Copyright © 2015 51Degrees. All rights reserved.