public final class CapturedStreamOutputSnapshot extends CapturedStreamOutput
bufferStream, processStream, STREAM_BLOCK_TRANSFER_SIZE
EMPTY
Constructor and Description |
---|
CapturedStreamOutputSnapshot(OutputStreamSettings settings,
java.io.InputStream processStream,
java.io.PrintStream standardStream) |
Modifier and Type | Method and Description |
---|---|
void |
read()
Drain the input stream to keep the process from backing up until it's empty.
|
getBufferBytes, isBufferTruncated
getBufferString, toString
public CapturedStreamOutputSnapshot(OutputStreamSettings settings, java.io.InputStream processStream, java.io.PrintStream standardStream)
settings
- Settings that define what to capture.processStream
- Stream to capture output.standardStream
- Stream to write debug output.public void read() throws java.io.IOException
read
in class CapturedStreamOutput
java.io.IOException
- When unable to read or write.