|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicOutputStream
Provides a set of low-level communication methods for writing.
all |
Method Summary | |
---|---|
void |
close()
Closes the stream, further writes are not possible, attached hardware will be turned off. |
int |
write(byte[] buffer,
int startindex,
int length)
Writes a byte array to the stream. |
void |
write(char data)
Writes a single byte to the stream. |
Method Detail |
---|
void close()
finalize
of implementing classes.
int write(byte[] buffer, int startindex, int length) throws IOException
Thread
is yielded and should be woken up if the device becomes
ready. Implementing classes may throw an IOException
if a timeout is
reached. The byte array may be partially written.
buffer
- the buffer that holds the data to writestartindex
- the index to start reading the arraylength
- number of bytes to write; the array is read from startindex
to
startindex
+length
-1
IOException
- if an error occursvoid write(char data) throws IOException
Thread
is yielded and should be woken up if the device becomes
ready. Implementing classes may throw an IOException
if a timeout is
reached.
data
- the byte to write (range of the char 0 .. 255, the highbyte is ignored)
IOException
- if an error occurs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |