public static class ThreadLocalPrintStream.OutputCapturingContext
extends java.lang.Object
Constructor and Description |
---|
ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream)
constructor which installs a ByteArrayOutputStream to this stream
|
ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream,
java.io.ByteArrayOutputStream capturingStream,
java.io.OutputStream optionalStreamToRestore)
constructor for a capturing context which is already installed
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
end() |
java.lang.String |
getOutputSoFar() |
java.io.ByteArrayOutputStream |
getOutputStream() |
boolean |
isActive() |
boolean |
isEmpty() |
java.lang.String |
toString() |
public ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream)
public ThreadLocalPrintStream.OutputCapturingContext(ThreadLocalPrintStream stream, java.io.ByteArrayOutputStream capturingStream, java.io.OutputStream optionalStreamToRestore)
public java.lang.String getOutputSoFar()
public java.lang.String end()
public boolean isActive()
public java.io.ByteArrayOutputStream getOutputStream()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()