rcx
Class RCXSerialPort
java.lang.Object
rcx.RCXSerialPort
- All Implemented Interfaces:
- RCXCommPort
public class RCXSerialPort
- extends java.lang.Object
- implements RCXCommPort
RCXSerialPort - represents a serial port
- Version:
- 2.1
Copyright 2002 Dario Laverde, under terms of GNU LGPL
- Author:
- Dario Laverde
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RCXSerialPort
public RCXSerialPort()
open
public boolean open(java.lang.String portName)
- opens the serial port
- Specified by:
open
in interface RCXCommPort
- See Also:
RCXCommPort
close
public void close()
- Specified by:
close
in interface RCXCommPort
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface RCXCommPort
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream
in interface RCXCommPort
getAvailableSerialPorts
public static java.util.Vector getAvailableSerialPorts()
- returns a vector of Strings consisting of available serial port names