public class OpenCommPort
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BAUD |
static int[] |
BITS_PER_SECOND_LIST |
static int |
FLOWCONTROL_HARDWARE |
static int |
FLOWCONTROL_NONE |
static int |
FLOWCONTROL_XONXOFF |
static int |
SERIALPORT_OPEN_TIMEOUTSECONDS |
Constructor and Description |
---|
OpenCommPort(java.lang.String portName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommPortName(java.awt.Frame f) |
static void |
main(java.lang.String[] argv) |
public static final int SERIALPORT_OPEN_TIMEOUTSECONDS
public static final int BAUD
public static final int FLOWCONTROL_HARDWARE
public static final int FLOWCONTROL_XONXOFF
public static final int FLOWCONTROL_NONE
public static final int[] BITS_PER_SECOND_LIST
public OpenCommPort(java.lang.String portName) throws java.io.IOException, gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException
java.io.IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
public static void main(java.lang.String[] argv) throws java.io.IOException, gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException
java.io.IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
public java.lang.String getCommPortName(java.awt.Frame f)