|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.streams.adapters.IteratorAdapter<E>
public class IteratorAdapter<E>
An adaptation strategy for IteratorStream.
IteratorStream| Constructor Summary | |
|---|---|
IteratorAdapter(Iterator<E> iterator)
Creates an instance from a given Iterator. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying iterator. |
URI |
locator()
Returns a locator for the underlying iterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratorAdapter(Iterator<E> iterator)
Iterator.
iterator - the iterator| Method Detail |
|---|
public URI locator()
By default it returns a locator of the form local:<toString()>, where <toString()> is the string
obtained by invoking Object.toString() on the iterator.
public void close()
throws IOException
By defaults it has no effect except when the iterator implements the Closeable interface. In this
case, it simply delegates to the iterator.
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||