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
-
ConsoleOutputStream()
-
-
flush()
- Flushes the stream.
-
setValidityCheckValue(char)
- Change the validity checking value.
-
write(byte[])
- Writes an array of bytes.
-
write(byte[], int, int)
- Writes a subarray of bytes.
-
write(int)
- Writes a byte.
ConsoleOutputStream
public ConsoleOutputStream()
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
write
public void write(int b) throws IOException
- Writes a byte.
- Parameters:
- b - the byte
- Throws: IOException
- If an I/O error has occurred.
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.
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.
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