|
comm API Version 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Part of the loadable device driver interface. CommDriver
should not be used by application-level programs.
| Method Summary | |
CommPort |
getCommPort(String portName,
int portType)
getCommPort() will be called by the CommPortIdentifier.open(java.lang.String, int)
method. portName is a string that was registered earlier using the
CommPortIdentifier.addPortName(java.lang.String, int, javax.comm.CommDriver) method. |
void |
initialize()
initialize() will be called by the CommPortIdentifier's static initializer. |
| Method Detail |
public void initialize()
CommPortIdentifier.
public CommPort getCommPort(String portName,
int portType)
CommPortIdentifier.open(java.lang.String, int)
method. portName is a string that was registered earlier using the
CommPortIdentifier.addPortName(java.lang.String, int, javax.comm.CommDriver) method.
portName - the port aka device name (e.g. "/dev/ircomm0")portType - the type of the port
SerialPort or
ParallelPort.CommPortIdentifier
|
comm API Version 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||