|
JBoss Remoting 3.0.0.Beta2 | ||||||||
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
, there is no object available; however, an
object may become available at a later time, depending on the implementation.
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.
true
if there are more objects in this stream
IOException
T next() throws IOException
IOException
- if the stream can no longer be readvoid close() throws IOException
close
in interface Closeable
IOException
- if an error occurs
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |