Serial Port
The SerialPort 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
|
+-- Input Device
|
+-- Serial Port
Input streams
none
Output streams
A single byte stream.
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.