public class Stream_Monitor.Monitor_OutputStream extends OutputStream
Constructor and Description |
---|
Stream_Monitor.Monitor_OutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close()
The currently buffered characters are flushed, but the writer
can still be written to.
|
void |
flush()
Flush the currently buffered bytes to the monitor display.
|
void |
write(int value)
Write a byte to the monitor.
|
write, write
public void write(int value)
Each byte written is buffered until an end-of-line sequence is
encountered or the buffer is full at which point the buffer is
flushed
to the display. An end-of-line line
sequence is any one of a line feed ('\n', 0x0A), a carriage return
('\r', 0x0D), or a carriage return followed immediately by a
linefeed.
write
in class OutputStream
value
- An integer value of which only the least significant
byte is buffered.public void flush()
The currently buffered bytes are converted to a String using the
default character encoding. This text is written
to the monitor display. The text is eligible
for auto-style
processing, if enabled.
flush
in interface Flushable
flush
in class OutputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream