gnu.io
Class RXTXCommDriver

java.lang.Object
  extended by gnu.io.RXTXCommDriver
All Implemented Interfaces:
CommDriver

public class RXTXCommDriver
extends java.lang.Object
implements CommDriver

This is the JavaComm for Linux driver.


Constructor Summary
RXTXCommDriver()
           
 
Method Summary
 CommPortInterface getCommPort(java.lang.String PortName, int PortType)
          This method will be called on CommPortIdentifier.open.
 void initialize()
          Determine the OS and where the OS has the devices located
static void main(java.lang.String[] args)
           
 void Report(java.lang.String arg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RXTXCommDriver

public RXTXCommDriver()
Method Detail

main

public static void main(java.lang.String[] args)

initialize

public void initialize()
Determine the OS and where the OS has the devices located

Specified by:
initialize in interface CommDriver

getCommPort

public CommPortInterface getCommPort(java.lang.String PortName,
                                     int PortType)
Description copied from interface: CommDriver
This method will be called on CommPortIdentifier.open.

Specified by:
getCommPort in interface CommDriver
Parameters:
PortName - The name of the port the OS recognizes
PortType - CommPortIdentifier.PORT_SERIAL or PORT_PARALLEL
Returns:
a CommPort instance 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

public void Report(java.lang.String arg)