rcx
Class RCXSerialPort

java.lang.Object
  extended by 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

Constructor Summary
RCXSerialPort()
           
 
Method Summary
 void close()
           
static java.util.Vector getAvailableSerialPorts()
          returns a vector of Strings consisting of available serial port names
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 boolean open(java.lang.String portName)
          opens the serial port
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCXSerialPort

public RCXSerialPort()
Method Detail

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