All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class spec.io.ConsoleOutputStream

spec.io.ConsoleOutputStream

public class ConsoleOutputStream
This class implements a special from of OutputStream that is used to direct console output from Context.out to a special window.

See Also:
PrintStream

Constructor Index

 o ConsoleOutputStream()

Method Index

 o flush()
Flushes the stream.
 o setValidityCheckValue(char)
Change the validity checking value.
 o write(byte[])
Writes an array of bytes.
 o write(byte[], int, int)
Writes a subarray of bytes.
 o write(int)
Writes a byte.

Constructors

 o ConsoleOutputStream
 public ConsoleOutputStream()

Methods

 o setValidityCheckValue
 public char setValidityCheckValue(char v)
Change the validity checking value. This is only for compatability with ValidityCheckOutputStream,

Parameters:
v - the value (between 0 and 8)
Returns:
the value we replaced
 o write
 public void write(int b) throws IOException
Writes a byte.

Parameters:
b - the byte
Throws: IOException
If an I/O error has occurred.
 o flush
 public void flush() throws IOException
Flushes the stream. This will write any buffered output bytes.

Throws: IOException
If an I/O error has occurred.
 o write
 public void write(byte b[]) throws IOException
Writes an array of bytes.

Parameters:
b - the data to be written
Throws: IOException
If an I/O error has occurred.
 o write
 public void write(byte b[],
                   int off,
                   int len) throws IOException
Writes a subarray of bytes.

Parameters:
b - the data to be written
off - the start offset in the data
len - the number of bytes that are written
Throws: IOException
If an I/O error has occurred.

All Packages  Class Hierarchy  This Package  Previous  Next  Index