public abstract class RCXAbstractPort
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PacketHandler |
packetHandler |
Constructor and Description |
---|
RCXAbstractPort(PacketHandler handler)
Constructor for the RCXAbstractPort.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this RCXPort, stopping the Listener thread.
|
java.io.InputStream |
getInputStream()
Returns an input stream for this RCXPort.
|
java.io.OutputStream |
getOutputStream()
Returns an output stream for this RCXPort.
|
int |
getTimeOut()
Getter for property timeOut.
|
void |
reset()
Resets sequence numbers for this port
|
void |
setTimeOut(int timeOut)
Setter for property timeOut.
|
protected PacketHandler packetHandler
public RCXAbstractPort(PacketHandler handler) throws java.io.IOException
handler
- the packet handlerjava.io.IOException
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
public void reset()
public void close()
public int getTimeOut()
public void setTimeOut(int timeOut)
timeOut
- New value of property timeOut.