public class IteratorAdapter<E> extends Object implements Closeable
IteratorStream.IteratorStream| Constructor and Description |
|---|
IteratorAdapter(Iterator<E> iterator)
Creates an instance from a given
Iterator. |
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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019. All Rights Reserved.