001/* 002 * This file is part of the Jikes RVM project (http://jikesrvm.org). 003 * 004 * This file is licensed to You under the Eclipse Public License (EPL); 005 * You may not use this file except in compliance with the License. You 006 * may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/eclipse-1.0.php 009 * 010 * See the COPYRIGHT.txt file distributed with this work for information 011 * regarding copyright ownership. 012 */ 013package org.jikesrvm.tools.oth; 014 015import java.io.PrintStream; 016 017/** 018 * Implements printing of output to the standard locations, i.e. 019 * {@linkplain System#out} and {@linkplain System#err}. 020 */ 021public class DefaultOutput implements OptTestHarnessOutput { 022 023 @Override 024 public void sysOutPrintln(String s) { 025 System.out.println(s); 026 } 027 028 @Override 029 public void sysOutPrint(String s) { 030 System.out.print(s); 031 } 032 033 @Override 034 public void sysErrPrintln(String s) { 035 System.err.println(s); 036 } 037 038 @Override 039 public PrintStream getSystemErr() { 040 return System.err; 041 } 042 043}