|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.dalsemi.comm.SerialOutputStream
An Serial output stream is an output stream for writing data to a serial port.
| Constructor Summary | |
SerialOutputStream(int portnum)
Creates a new data output stream to write data to the serial port. |
|
| Method Summary | |
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
flush()
Flushes this output stream. |
protected void |
open()
Opens a serial output stream for writing. |
void |
write(byte[] barr,
int offset,
int len)
Sends the given array out the serial port. |
void |
write(int ch)
Writes the given character to the serial port. |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerialOutputStream(int portnum)
portnum - the serial port to use for communications.| Method Detail |
protected void open()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
public void write(int ch)
throws java.io.IOException
ch - the byte to send.
java.io.IOException
public void write(byte[] barr,
int offset,
int len)
throws java.io.IOException
barr - the array to send.offset - the offset into the array to begin sending.len - the number of bytes to send.
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
public void flush()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||