public class SimpleCloseableInputProvider<E> extends Object implements CloseableInputProvider<E>
Constructor and Description |
---|
SimpleCloseableInputProvider(MutableObjectIterator<E> iterator)
Creates a new simple input provider that will return the given iterator.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
MutableObjectIterator<E> |
getIterator()
Gets the iterator over this input.
|
public SimpleCloseableInputProvider(MutableObjectIterator<E> iterator)
iterator
- The iterator that will be returned.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public MutableObjectIterator<E> getIterator()
CloseableInputProvider
getIterator
in interface CloseableInputProvider<E>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.