fi.jumi.core.output.SystemOutErr Maven / Gradle / Ivy
// Copyright © 2011-2012, Esko Luontola
// 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.output;
import javax.annotation.concurrent.ThreadSafe;
import java.io.PrintStream;
@ThreadSafe
public class SystemOutErr implements OutErr {
@Override
public PrintStream out() {
return System.out;
}
@Override
public PrintStream err() {
return System.err;
}
@Override
public void setOut(PrintStream out) {
System.setOut(out);
}
@Override
public void setErr(PrintStream err) {
System.setErr(err);
}
}