|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.datamodel.ipc.BinaryObjectStreamIterator
public class BinaryObjectStreamIterator
Iterator-like class to read a sequence of BON Any
objects from an input stream. Does not implement
Iterator
because the methods throw IOException
on read errors.
Constructor Summary | |
---|---|
BinaryObjectStreamIterator(java.io.InputStream binaryStream)
create instance. |
Method Summary | |
---|---|
void |
close()
close the underlying stream. |
boolean |
hasNext()
Check if more objects are available on the stream. |
Any |
next()
Get next object from stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryObjectStreamIterator(java.io.InputStream binaryStream)
Method Detail |
---|
public boolean hasNext() throws java.io.IOException
next()
, consecutive calls to this method will not throw exception.
true
if the next call to next()
will return an Any
object, else
false
.
java.io.IOException
- on stream read errors.
java.lang.IllegalStateException
- on BON parse errors.public Any 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()
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |