|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectportcomms.OpenCommPort
public class OpenCommPort
Open a serial port using Java Communications.
| Field Summary | |
|---|---|
static int |
BAUD
|
static int[] |
BITS_PER_SECOND_LIST
|
(package private) gnu.io.CommPortIdentifier |
commPortID
The chosen Port Identifier |
protected boolean |
debug
A flag to control debugging output. |
static int |
FLOWCONTROL_HARDWARE
|
static int |
FLOWCONTROL_NONE
|
static int |
FLOWCONTROL_XONXOFF
|
protected java.io.BufferedReader |
inputStream
The input stream |
protected java.io.PrintStream |
outputStream
The output stream |
protected java.awt.Frame |
parent
The parent Frame, for the chooser. |
protected java.lang.String |
response
The last line read from the serial port. |
static int |
SERIALPORT_OPEN_TIMEOUTSECONDS
|
(package private) gnu.io.CommPort |
thePort
The chosen Port itself |
| Constructor Summary | |
|---|---|
OpenCommPort(java.lang.String portName)
|
|
| Method Summary | |
|---|---|
protected void |
converse()
This method will be overridden by non-trivial subclasses to hold a conversation. |
java.lang.String |
getCommPortName(java.awt.Frame f)
|
static void |
main(java.lang.String[] argv)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
protected java.awt.Frame parent
protected java.io.BufferedReader inputStream
protected java.io.PrintStream outputStream
protected java.lang.String response
protected boolean debug
gnu.io.CommPortIdentifier commPortID
gnu.io.CommPort thePort
| Constructor Detail |
|---|
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| Method Detail |
|---|
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.UnsupportedCommOperationExceptionpublic java.lang.String getCommPortName(java.awt.Frame f)
protected void converse()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||