public class ReaderIterator<T> extends Object implements MutableObjectIterator<T>
MutableObjectIterator that wraps a reader from an input channel and
produces the reader's records.
The reader supports reading objects with possible reuse of mutable types, and
without reuse of mutable types.| Constructor and Description |
|---|
ReaderIterator(MutableReader<DeserializationDelegate<T>> reader,
TypeSerializer<T> serializer)
Creates a new iterator, wrapping the given reader.
|
public ReaderIterator(MutableReader<DeserializationDelegate<T>> reader, TypeSerializer<T> serializer)
reader - The reader to wrap.public T next(T target) throws IOException
next in interface MutableObjectIterator<T>IOExceptionpublic T next() throws IOException
next in interface MutableObjectIterator<T>IOExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.