public class DebuggingOutputStream
extends java.io.OutputStream
Debug| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
STDERR
Constant for the stderr stream.
|
(package private) static int |
STDOUT
Constant for the stdout stream
|
| Constructor and Description |
|---|
DebuggingOutputStream(int dir)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close stream.
|
void |
flush()
Flush stream.
|
void |
write(byte[] b)
Write a byte array.
|
void |
write(byte[] b,
int off,
int len)
Write a part of a byte array.
|
void |
write(int b)
Write a byte.
|
static final int STDOUT
static final int STDERR
DebuggingOutputStream(int dir)
dir - STDOUT or STDERRpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void write(int b)
write in class java.io.OutputStreamb - the bytepublic void write(@NotNull byte[] b)
write in class java.io.OutputStreamb - the byte arraypublic void write(@NotNull byte[] b, int off, int len)
write in class java.io.OutputStreamb - the byte arrayoff - start offset to first byte to be writtenlen - number of bytes to write