public class DeadlockPrintStream
extends java.io.PrintStream
| Constructor and Description |
|---|
DeadlockPrintStream(java.io.PrintStream out)
Creates a new DeadlockPrintStream wrapped around another PrintStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
setDeadlock(boolean deadlock)
Sets or clears the deadlock flag.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public DeadlockPrintStream(java.io.PrintStream out)
out - The PrintStream which will be wrapped by this new stream.public void write(int b)
write in class java.io.PrintStreampublic void write(byte[] b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
write in class java.io.PrintStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.PrintStreampublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.PrintStreampublic void setDeadlock(boolean deadlock)
deadlock - True to set the flag, false to clear it.