|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface BasicInputStream
Provides a set of low-level communication methods for reading.
| all |
| Method Summary | |
|---|---|
void |
close()
Closes the stream, further reads are not possible, attached hardware will be turned off. |
char |
read()
Reads a single byte from the stream. |
int |
read(byte[] buffer,
int startindex,
int length)
Reads a byte array from the stream. |
| Method Detail |
|---|
void close()
finalize of implementing classes.
char read()
throws IOException
Thread is yielded and should be woken up if data
arrives. Implementing classes may throw an IOException if a timeout is
reached.
IOException - if an error occurs
int read(byte[] buffer,
int startindex,
int length)
throws IOException
Thread is yielded and should be woken up if data
arrives. Implementing classes may throw an IOException if a timeout is
reached. The byte array may be partially filled.
buffer - the buffer to fillstartindex - the index to start filling the arraylength - number of byte to read; the array is filled from startindex to
startindex+length-1
IOException - if an error occurs
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||