public class OutputCatcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
START_ERROR
The HTML text will contain this string if something was written to
System.err.
|
Modifier and Type | Method and Description |
---|---|
static OutputCatcher |
start()
Create a new output catcher and start it.
|
void |
stop()
Stop catching output.
|
void |
writeTo(java.lang.String title,
java.lang.String fileName)
Write the output to a HTML file.
|
public static final java.lang.String START_ERROR
public void stop()
public void writeTo(java.lang.String title, java.lang.String fileName) throws java.io.IOException
title
- the titlefileName
- the file namejava.io.IOException
public static OutputCatcher start()