josx.rcxcomm
Class RCXOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--josx.rcxcomm.RCXOutputStream

public class RCXOutputStream
extends OutputStream

Cut down version of RCXPort, which only supports writes.


Constructor Summary
RCXOutputStream()
          Creates new RCXOutputStream
 
Method Summary
 void close()
          Close the stream.
 void flush()
          Flush the OutputStream
 void write(int b)
          Write a byte to the OutputStream.
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

RCXOutputStream

public RCXOutputStream()
Creates new RCXOutputStream
Method Detail

write

public void write(int b)
           throws IOException
Write a byte to the OutputStream.
Overrides:
write in class OutputStream
Parameters:
b - The byte.
Throws:
IOException - if the byte could not be written to the stream

flush

public void flush()
           throws IOException
Flush the OutputStream
Overrides:
flush in class OutputStream
Throws:
IOException - is never thrown

close

public void close()
           throws IOException
Close the stream.
Overrides:
close in class OutputStream
Throws:
IOException - is never thrown