|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.debellor.core.Cell.Stream
public static class Cell.Stream
Represents a stream of samples flowing between two cells.
Instance of Stream
is created by the sender on receiver's request
(Cell.open()
).
Then, it can be used by the receiver to retrieve consecutive samples.
Stream object is tightly coupled with its parent cell (the sender),
until the stream is closed.
Field Summary | |
---|---|
Sample.SampleType |
sampleType
Common properties (type) of all samples that will be generated by this stream. |
Method Summary | |
---|---|
void |
close()
Closes the stream. |
Sample |
next()
Returns next sample of data from this stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Sample.SampleType sampleType
Method Detail |
---|
public final Sample next() throws CellException
Sample
object are immutable,
so the same data object (Sample
or subclass of DataObject
)
can be referenced by many cells at the same time.
End of data is reported by returning null
value.
In such case, next()
can be still called any number of times,
but every time it will return null
.
null
if no more samples are available.
This should be checked to detect end of stream.
CellException
public final void close() throws CellException
CellException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |