File: REngineStdOutput.java

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (15 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.rosuda.REngine;

/** implementation of the {@link REngineOutputInterface} which uses standard output. */
public class REngineStdOutput implements REngineCallbacks, REngineOutputInterface {
	public synchronized void RWriteConsole(REngine eng, String text, int oType) {
		((oType == 0) ? System.out : System.err).print(text);
	}
	
	public void RShowMessage(REngine eng, String text) {
		System.err.println("*** "+text);
	}
	
	public void RFlushConsole(REngine eng) {
	}
}