de.unidu.is.gnuplot
Class GnuplotCall

java.lang.Object
  extended byde.unidu.is.gnuplot.GnuplotCall

public class GnuplotCall
extends java.lang.Object

A class for calling the Linux/Unix tool gnuplot.

Since:
2003-07-2003
Version:
$Revision: 1.7 $, $Date: 2005/02/21 17:29:19 $
Author:
Henrik Nottelmann

Constructor Summary
GnuplotCall()
           
 
Method Summary
static java.io.Reader call(java.lang.String input)
          Calls gnuplot and returns the output of STDERR.
static java.io.Reader call(java.lang.String input, boolean returnReader, boolean errorReader)
          Calls gnuplot and returns the output on STDOUT or STDERR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnuplotCall

public GnuplotCall()
Method Detail

call

public static java.io.Reader call(java.lang.String input)
                           throws java.io.IOException
Calls gnuplot and returns the output of STDERR.

Actually, this method issues a call for the config parameter gnuplot.bin.

Parameters:
input - gnuplot input
Returns:
reader for STDERR
Throws:
java.io.IOException

call

public static java.io.Reader call(java.lang.String input,
                                  boolean returnReader,
                                  boolean errorReader)
                           throws java.io.IOException
Calls gnuplot and returns the output on STDOUT or STDERR.

Actually, this method issues a call for the config parameter gnuplot.bin.

Parameters:
input - gnuplot input
returnReader - if true, return a reader
errorReader - if true, returns a reader for STDERR, otherwise for STDOUT, if returnReader==true
Returns:
reader for STDERR or STDOUT, or null
Throws:
java.io.IOException