RoboJDETM v2.0

javax.comm
Class CommPort

java.lang.Object
  extended by javax.comm.CommPort
Direct Known Subclasses:
SerialPort

public abstract class CommPort
extends Object

Base class for all communications ports


Field Summary
protected  String name
          The name of this CommPort.
 
Constructor Summary
protected CommPort()
          Constructs a CommPort.
 
Method Summary
 void close()
          Closes this port.
abstract  InputStream getInputStream()
          Gets the InputStream for this port.
 String getName()
          Gets the name of this port.
abstract  OutputStream getOutputStream()
          Gets the OutputStream for this port.
 String toString()
          Returns the String name of this port.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait
 

Field Detail

name

protected String name
The name of this CommPort.

Constructor Detail

CommPort

protected CommPort()
Constructs a CommPort.

Method Detail

close

public void close()
Closes this port.


getInputStream

public abstract InputStream getInputStream()
                                    throws IOException
Gets the InputStream for this port.

Returns:
InputStream for this port
Throws:
IOException

getName

public String getName()
Gets the name of this port.

Returns:
port name

getOutputStream

public abstract OutputStream getOutputStream()
                                      throws IOException
Gets the OutputStream for this port.

Returns:
OutputStream for this port
Throws:
IOException

toString

public String toString()
Returns the String name of this port.

Overrides:
toString in class Object
Returns:
String identifier for port

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com