public static void setThread() {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        data.set(baos);
        streams.set(new PrintStream(baos));
    }
public static void setThread() {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        data.set(baos);
        streams.set(new PrintStream(baos));
    }
public static void setThread ( ) { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; data . set ( baos ) ; streams . set ( new PrintStream ( baos ) ) ; }
Start capturing thread's output.
Start capturing thread s output .