|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectserialPort.SimpleWriteRead
public class SimpleWriteRead
Simple Java Communications API Test Program:
This is a simple example of writing and reading from a comm port. Additionally it will illustrate the following: - Discovering all available serial ports and using the first one (unless one is specified on the command line) - How to use the USB port add-on on to the Java Communcations API using the rcx.comm package. (requires a specific port name on the command line e.g. LEGOTOWER1 )
| Constructor Summary | |
|---|---|
SimpleWriteRead()
|
|
| Method Summary | |
|---|---|
static java.util.Vector |
getAvailableSerialPorts()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleWriteRead()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static java.util.Vector getAvailableSerialPorts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||