com.engidea.win32jcom
Class WinjcomIdentifier
java.lang.Object
com.engidea.comm.CommPortIdentifier
com.engidea.win32jcom.WinjcomIdentifier
public class WinjcomIdentifier
- extends CommPortIdentifier
To get a port you instantiate this class and then call the getCommPort()
Once you have a port you can open it and then you can read and write.
Constructor Summary |
WinjcomIdentifier(int debugMask)
You start with this one
You can enable debugging mask if you wish so. |
Method Summary |
CommPort |
getCommPort(java.lang.String portName)
See the API description for documentation. |
java.util.List |
getCommPortList()
See at API description for documentation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jcomNativeLibrary
public static final java.lang.String jcomNativeLibrary
- See Also:
- Constant Field Values
DEBUG_INIT
public static final int DEBUG_INIT
- See Also:
- Constant Field Values
DEBUG_TEST_PORT
public static final int DEBUG_TEST_PORT
- See Also:
- Constant Field Values
DEBUG_ERRORS
public static final int DEBUG_ERRORS
- See Also:
- Constant Field Values
DEBUG_OPEN_PORT
public static final int DEBUG_OPEN_PORT
- See Also:
- Constant Field Values
DEBUG_WRITE
public static final int DEBUG_WRITE
- See Also:
- Constant Field Values
DEBUG_READ
public static final int DEBUG_READ
- See Also:
- Constant Field Values
DEBUG_COMMEVENT
public static final int DEBUG_COMMEVENT
- See Also:
- Constant Field Values
DEBUG_POPARAMS
public static final int DEBUG_POPARAMS
- See Also:
- Constant Field Values
DEBUG_CLOSE_PORT
public static final int DEBUG_CLOSE_PORT
- See Also:
- Constant Field Values
WinjcomIdentifier
public WinjcomIdentifier(int debugMask)
- You start with this one
You can enable debugging mask if you wish so.
- Parameters:
debugMask
- a debug mask taken from the above constants. Zero means no debug
getCommPort
public CommPort getCommPort(java.lang.String portName)
- See the API description for documentation.
- Specified by:
getCommPort
in class CommPortIdentifier
- Parameters:
portName
-
- Returns:
- usable com port attached to the given name
getCommPortList
public java.util.List getCommPortList()
- See at API description for documentation.
- Specified by:
getCommPortList
in class CommPortIdentifier
- Returns:
- a List of CommPort present on the system.