SerialPortOutput
The SerialPortOutput represents a hardware serial port on the local computer. Due to Java/Netscape
security, part of the serial port access code must be implemented as native C code.
Module
|
+-- OutputDevice
|
+-- SerialPortInput
Input streams
1 byte stream, byteStream.
Output streams
none.
Fields
- handle
, set by the "startUp" method
- portNumber, this and all remaining fields are required by the constructor
- baud
- parity
- dataBits
- stopBits
Methods
- startUp() -- opens the serial port. If successful, sets the Input Device "running" field to
true, and sets the "handle" field of the SerialPort to the appropriate value.
- shutDown() -- closes the serial port if it was opened, unconditionally sets the Input Device
"running" field to false and the "handle" to null.
- update() -- takes the input stream and writes it to the serial port.