|
Griffon 1.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codehaus.griffon.test.io.SystemOutAndErrSwapper
class SystemOutAndErrSwapper
Convenience class to temporarily swap in an output stream for standard error and standard out.
Field Summary | |
---|---|
protected boolean |
swapped
|
protected PrintStream |
swappedInErr
|
protected OutputStream |
swappedInErrStream
|
protected PrintStream |
swappedInOut
|
protected OutputStream |
swappedInOutStream
|
protected PrintStream |
swappedOutErr
|
protected PrintStream |
swappedOutOut
|
Property Summary | |
---|---|
boolean |
echoErr
|
boolean |
echoOut
|
Constructor Summary | |
SystemOutAndErrSwapper(boolean echoOut = false, boolean echoErr = false)
|
Method Summary | |
---|---|
List
|
swapIn()
Replaces System.out and System.err with PrintStream's wrapping outStream and errStream |
List
|
swapIn(OutputStream outStream, OutputStream errStream)
Replaces System.out and System.err with PrintStream's wrapping outStream and errStream |
List
|
swapOut()
Restores System.out and System.err to what they were before swappedIn() was called. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected boolean swapped
protected PrintStream swappedInErr
protected OutputStream swappedInErrStream
protected PrintStream swappedInOut
protected OutputStream swappedInOutStream
protected PrintStream swappedOutErr
protected PrintStream swappedOutOut
Property Detail |
---|
final boolean echoErr
final boolean echoOut
Constructor Detail |
---|
SystemOutAndErrSwapper(boolean echoOut = false, boolean echoErr = false)
Method Detail |
---|
List swapIn()
List swapIn(OutputStream outStream, OutputStream errStream)
List swapOut()
Groovy Documentation