|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.beepcore.beep.core.InputDataStream
InputDataStream holds a stream of
BufferSegments(s) and provides accessor methods to
that stream.
Note that this implementation is not synchronized. If
multiple threads access a InputDataStream
concurrently, data may be inconsistent or lost.
BufferSegment| Method Summary | |
int |
available()
|
boolean |
availableSegment()
Returns true if a BufferSegment is available
to receive. |
void |
close()
Indicates that the application is finished receiving data from this stream. |
InputDataStreamAdapter |
getInputStream()
Returns an InputStream for reading the data in this stream. |
BufferSegment |
getNextSegment()
Returns the next BufferSegment in this stream. |
boolean |
isClosed()
|
boolean |
isComplete()
Returns true if no more bytes will be added to
those currently available on this stream. |
BufferSegment |
waitForNextSegment()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int available()
public boolean availableSegment()
true if a BufferSegment is available
to receive.
public void close()
public InputDataStreamAdapter getInputStream()
InputStream for reading the data in this stream.
public BufferSegment getNextSegment()
BufferSegment in this stream.
public BufferSegment waitForNextSegment()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean isClosed()
public boolean isComplete()
true if no more bytes will be added to
those currently available on this stream. Returns
false if more bytes are expected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||