Class RXTXCommDriver
java.lang.Object
gnu.io.RXTXCommDriver
- All Implemented Interfaces:
CommDriver
This is the JavaComm for Linux driver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommPort(String PortName, int PortType) voidDetermine the OS and where the OS has the devices locatedstatic Stringvoid
-
Constructor Details
-
RXTXCommDriver
public RXTXCommDriver()
-
-
Method Details
-
nativeGetVersion
-
initialize
public void initialize()Determine the OS and where the OS has the devices located- Specified by:
initializein interfaceCommDriver
-
getCommPort
- Specified by:
getCommPortin interfaceCommDriver- Parameters:
PortName- The name of the port the OS recognizesPortType- CommPortIdentifier.PORT_SERIAL or PORT_PARALLEL- Returns:
- CommPort getCommPort() will be called by CommPortIdentifier from its openPort() method. PortName is a string that was registered earlier using the CommPortIdentifier.addPortName() method. getCommPort() returns an object that extends either SerialPort or ParallelPort.
-
Report
-