com.sun.comm
Class LinuxDriver

java.lang.Object
  extended bycom.sun.comm.LinuxDriver
All Implemented Interfaces:
CommDriver

public class LinuxDriver
extends java.lang.Object
implements CommDriver


Field Summary
private static boolean debug
          CommDriver's interface -------------------------------- public CommPort getCommPort(java.lang.String portName int portType)getCommPort() will be called by CommPortIdentifier from its open() method.
private  boolean driverInitialized
           
 
Constructor Summary
LinuxDriver()
           
 
Method Summary
 CommPort getCommPort(java.lang.String portName, int portType)
          getCommPort() will be called by CommPortIdentifier.open() portName is a string that was registered earlier using the CommPortIdentifier.addPortName() method.
 void initialize()
          initialize() will be called by the CommPortIdentifier's static initializer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private static boolean debug
CommDriver's interface -------------------------------- public CommPort getCommPort(java.lang.String portName int portType)getCommPort() will be called by CommPortIdentifier from its open() method. portName is a string that was registered earlier using the CommPortIdentifier.addPortName() method. getCommPort() returns an object that extends either SerialPort or ParallelPort. void initialize() initialize() will be called by the CommPortIdentifier's static initializer. The responsibility of this method is: 1) Ensure that that the hardware is present. 2) Load any required native libraries. 3) Register the port names with the CommPortIdentifier.


driverInitialized

private boolean driverInitialized
Constructor Detail

LinuxDriver

public LinuxDriver()
Method Detail

initialize

public void initialize()
Description copied from interface: CommDriver
initialize() will be called by the CommPortIdentifier's static initializer. The responsibility of this method is: 1) Ensure that that the hardware is present. 2) Load any required native libraries. 3) Register the port names with the CommPortIdentifier.

Specified by:
initialize in interface CommDriver

getCommPort

public CommPort getCommPort(java.lang.String portName,
                            int portType)
Description copied from interface: CommDriver
getCommPort() will be called by CommPortIdentifier.open() portName is a string that was registered earlier using the CommPortIdentifier.addPortName() method. getCommPort() returns an object that extends either SerialPort or ParallelPort.

Specified by:
getCommPort in interface CommDriver