public class OutputCapturer extends Object
Constructor and Description |
---|
OutputCapturer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isCapturing()
Returns true if output is currently being captured.
|
static void |
start()
Begins capturing output with no limit as to its length.
|
static void |
start(boolean limit)
Begins capturing output.
|
static String |
stop()
Stops capturing output and returns the string of captured output.
|
public static boolean isCapturing()
public static void start()
public static void start(boolean limit)
public static String stop()