@groovy.transform.ToString @groovy.transform.CompileStatic class SystemStreamsRedirector extends java.lang.Object
Modifiers | Name | Description |
---|---|---|
private java.io.PrintStream |
err |
|
private java.io.InputStream |
input |
|
private static SystemStreamsRedirector |
original |
|
private java.io.PrintStream |
out |
Constructor and description |
---|
private SystemStreamsRedirector
(java.io.InputStream input, java.io.PrintStream out, java.io.PrintStream err) |
Type Params | Return Type | Name and description |
---|---|---|
|
static SystemStreamsRedirector |
create(java.io.InputStream input, java.io.PrintStream out, java.io.PrintStream err) |
|
static SystemStreamsRedirector |
current() |
|
static SystemStreamsRedirector |
original() |
|
SystemStreamsRedirector |
redirect() |
<T> |
static T |
withOriginalIO(groovy.lang.Closure<T> closure) |
<T> |
T |
withRedirectedIO(groovy.lang.Closure<T> closure) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation