RoboJDETM v2.0

com.ridgesoft.io
Class DisplayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.ridgesoft.io.DisplayOutputStream

public class DisplayOutputStream
extends OutputStream

An output stream for writing to a multi-line display.

This object may be used with a PrintStream for standard println output.

See Also:
PrintStream

Constructor Summary
DisplayOutputStream(Display display)
          Constructs an OutputStream for the specified display.
 
Method Summary
 void flush()
          Flushes all characters to the display.
 void write(byte[] bytes)
          Writes ASCII bytes to the display.
 void write(byte[] bytes, int offset, int length)
          Writes ASCII bytes to the display.
 void write(int asciiByte)
          Writes one ASCII byte to the display.
 
Methods inherited from class java.io.OutputStream
close
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

DisplayOutputStream

public DisplayOutputStream(Display display)
Constructs an OutputStream for the specified display.

Parameters:
display - Display to output to
Method Detail

flush

public void flush()
Flushes all characters to the display.

Overrides:
flush in class OutputStream

write

public void write(byte[] bytes)
           throws IOException
Writes ASCII bytes to the display.

Overrides:
write in class OutputStream
Parameters:
bytes - bytes to write
Throws:
IOException

write

public void write(byte[] bytes,
                  int offset,
                  int length)
           throws IOException
Writes ASCII bytes to the display.

Overrides:
write in class OutputStream
Parameters:
bytes - ASCII bytes to write
offset - offset of starting byte
length - length to write
Throws:
IOException

write

public void write(int asciiByte)
Writes one ASCII byte to the display.

Specified by:
write in class OutputStream
Parameters:
asciiByte - byte to write

RoboJDETM v2.0

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