simtools.util
Class DefaultErrOutWriter

java.lang.Object
  extended by simtools.util.DefaultErrOutWriter
All Implemented Interfaces:
SysExec.ErrOutWriter

public class DefaultErrOutWriter
extends java.lang.Object
implements SysExec.ErrOutWriter

Type DefaultErrOutWriter
Summary:
A default implementation of the ErrOutWriter interface.


Constructor Summary
DefaultErrOutWriter(java.lang.String outputFile, java.lang.String errFile)
          Constructor.
 
Method Summary
 void closeStreams()
          This permits to flush and close the err and out streams.
 void errPrintln(java.lang.String line)
           
protected  void finalize()
           
 java.io.BufferedWriter getErrWriter()
           
 java.io.BufferedWriter getOutWriter()
           
 void outPrintln(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrOutWriter

public DefaultErrOutWriter(java.lang.String outputFile,
                           java.lang.String errFile)
Constructor.
Summary:
The constructor of the Class DefaultErrOutWriter.

Parameters:
outputFile - The file to write the outputs.
errFile - The file to write the errors.
Method Detail

getOutWriter

public java.io.BufferedWriter getOutWriter()
Returns:
(BufferedWriter}) the outWriter

getErrWriter

public java.io.BufferedWriter getErrWriter()
Returns:
(BufferedWriter}) the errWriter

errPrintln

public void errPrintln(java.lang.String line)
Specified by:
errPrintln in interface SysExec.ErrOutWriter

outPrintln

public void outPrintln(java.lang.String line)
Specified by:
outPrintln in interface SysExec.ErrOutWriter

closeStreams

public void closeStreams()
This permits to flush and close the err and out streams.


finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable