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.
Method Summary |
void |
close()
Close the stream. |
void |
flush()
Flush the OutputStream |
void |
write(int b)
Write a byte to the OutputStream. |
RCXOutputStream
public RCXOutputStream()
- Creates new RCXOutputStream
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