public class IteratorReader<T> extends AbstractReader<T>
| Constructor and Description |
|---|
IteratorReader() |
IteratorReader(Iterator<T> iterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the reader and all resources associated with it.
|
Map<String,Object> |
getProperties() |
<C> C |
getProperty(String name) |
Iterator<T> |
iterator()
Return a new iterator for type T at the first item to read.
|
void |
open()
Open the reader so that it is ready to be read from.
|
protected void |
setIterator(Iterator<T> iterator) |
void |
setProperty(String name,
Object value) |
read, visitclearProperties, getProperty, removeProperty, setProperties, setPropertySoft, setPropertyWeakclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getProperty, removeProperty, setProperties, setPropertySoft, setPropertyWeakpublic void close()
Readerclose in interface Reader<T>close in interface AutoCloseableclose in class AbstractObjectWithPropertiespublic Map<String,Object> getProperties()
getProperties in interface ObjectWithPropertiesgetProperties in class AbstractObjectWithPropertiespublic <C> C getProperty(String name)
getProperty in interface ObjectWithPropertiesgetProperty in class AbstractObjectWithPropertiespublic Iterator<T> iterator()
Readerpublic void open()
Readerpublic void setProperty(String name, Object value)
setProperty in interface ObjectWithPropertiessetProperty in class AbstractObjectWithPropertiesCopyright © 2015 Revolution Systems Inc.. All rights reserved.