org.ow2.shelbie.core.console.util
Class Streams

java.lang.Object
  extended by org.ow2.shelbie.core.console.util.Streams

public class Streams
extends Object

the Streams utility class holds streams related stuff.


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wrap

public static PrintStream wrap(PrintStream stream)
Wrap the given PrintStream into an Ansi capable PrintStream.

Parameters:
stream - stream to be wrapped
Returns:
ANSI capable stream

unwrapStream

public static PrintStream unwrapStream(PrintStream stream)
The 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.

Parameters:
stream - Potential Gogo stream
Returns:
unwrapped stream


Copyright © 2013 OW2 Consortium. All Rights Reserved.