// Copyright © 2011-2013, Esko Luontola <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 package fi.jumi.core.stdout; import org.apache.commons.io.output.NullOutputStream; import java.io.PrintStream; public class FakeOutErr implements OutErr { private PrintStream out = new PrintStream(new NullOutputStream()); private PrintStream err = new PrintStream(new NullOutputStream()); @Override public PrintStream out() { return out; } @Override public PrintStream err() { return err; } @Override public void setOut(PrintStream out) { this.out = out; } @Override public void setErr(PrintStream err) { this.err = err; } }