public class Streams extends Object
| Modifier and Type | Method and Description |
|---|---|
static PrintStream |
unwrapStream(PrintStream stream)
The
System.out PrintStream provided by Gogo is itself a wrapper to the real interesting PrintStream. |
static PrintStream |
wrap(PrintStream stream)
Wrap the given
PrintStream into an Ansi capable PrintStream. |
public static PrintStream wrap(PrintStream stream)
PrintStream into an Ansi capable PrintStream.stream - stream to be wrappedpublic static PrintStream unwrapStream(PrintStream stream)
System.out PrintStream provided by Gogo is itself a wrapper to the real interesting PrintStream.
If we don't extract that stream, we'll hit some infinite recursion issue, and that's not cool.stream - Potential Gogo streamCopyright © 2013 OW2 Consortium. All Rights Reserved.