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 STDERR
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void write(int b)
write
in class java.io.OutputStream
b
- the bytepublic void write(@NotNull byte[] b)
write
in class java.io.OutputStream
b
- the byte arraypublic void write(@NotNull byte[] b, int off, int len)
write
in class java.io.OutputStream
b
- the byte arrayoff
- start offset to first byte to be writtenlen
- number of bytes to write