| Modifier and Type | Field and Description |
|---|---|
Console |
console
The
Console to which all the messages are redirected. |
| Constructor and Description |
|---|
ConsoleCapture(Console console)
Constructs an utility object allowing to redirect all
the messages printed to
System.out and
System.err to specified Console. |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Start message redirection.
|
void |
end()
Stop message redirection and restore the real
System.out
and System.err. |