public class BinaryObjectStreamIterator
extends java.lang.Object
implements java.lang.AutoCloseable
Record objects from an input stream. Does not implement
Iterator because the methods throw IOException on read errors.| Constructor and Description |
|---|
BinaryObjectStreamIterator(java.io.InputStream binaryStream)
create instance.
|
public BinaryObjectStreamIterator(java.io.InputStream binaryStream)
public boolean hasNext()
throws java.io.IOException
next(), consecutive calls to this method will not throw exception.public Record next() throws java.io.IOException
next() that
returned true.java.util.NoSuchElementException - no more objects available, a call to hasNext() would have returned false.java.io.IOException - on stream read errors.java.lang.IllegalStateException - on BON parse errors.public void close()
close in interface java.lang.AutoCloseable