com.dalsemi.comm
Class TINICommDriver

java.lang.Object
  |
  +--com.dalsemi.comm.TINICommDriver

public class TINICommDriver
extends java.lang.Object
implements javax.comm.CommDriver

Part of the loadable device driver interface. CommDriver should not be used by application-level programs.


Constructor Summary
TINICommDriver()
           
 
Method Summary
 javax.comm.CommPort getCommPort(java.lang.String name, int i)
          getCommPort() will be called by CommPortIdentifier from its open() 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
 

Constructor Detail

TINICommDriver

public TINICommDriver()
Method Detail

initialize

public 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.
Specified by:
initialize in interface javax.comm.CommDriver

getCommPort

public javax.comm.CommPort getCommPort(java.lang.String name,
                                       int i)
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.
Specified by:
getCommPort in interface javax.comm.CommDriver