|
Groovy 1.7.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
groovy.ui.SystemOutputInterceptor
class SystemOutputInterceptor extends FilterOutputStream
Intercepts System.out. Implementation helper for Console.groovy.
| Constructor Summary | |
SystemOutputInterceptor(Closure callback)
Constructor accepts a string to be sent to std out and returns a Boolean. |
|
| Method Summary | |
|---|---|
void
|
start()
Starts intercepting System.out |
void
|
stop()
Stops intercepting System.out, sending output to whereever it was going when this interceptor was created. |
void
|
write(byte[] b, int off, int len)
Intercepts output - moret common case of byte[] |
void
|
write(int b)
Intercepts output - single characters |
| Methods inherited from class FilterOutputStream | |
|---|---|
| write, write, write, close, flush, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Methods inherited from class OutputStream | |
|---|---|
| write, write, write, close, flush, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Constructor Detail |
|---|
public SystemOutputInterceptor(Closure callback)
| Method Detail |
|---|
public void start()
public void stop()
public void write(byte[] b, int off, int len)
public void write(int b)
Copyright © 2003-2009 The Codehaus. All rights reserved.