|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the object typepublic interface ObjectSource<T>

A streaming source for objects.
| Method Summary | |
|---|---|
void |
close()
Close the stream. |
boolean |
hasNext()
Indicate whether there are more objects to retrieve. |
T |
next()
Get the next object in the stream. |
| Method Detail |
|---|
boolean hasNext()
throws IOException
true, an object is
guaranteed to be available. If this method returns false, the end of stream has been reached.
If this method returns true, it will continue to return true on every subsequent invocation until
the next object is pulled using the next() method, or until the object source is closed. This method
may block until the presence of the next object in the stream has been ascertained.
true if there are more objects in this stream
IOException
T next()
throws NoSuchElementException,
IOException
hasNext() method should be called before this method is called
to avoid receiving a NoSuchElementException.
NoSuchElementException - if no object is available
IOException - if an I/O error occurs
void close()
throws IOException
close in interface CloseableIOException - if an I/O error occurs
|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||