File fIn = createRWfile(path, "in_" + outFile);
try
{
PrintStream wrapperOut = (PrintStream) new CyclicBufferFilePrintStream(fOut);
TeeOutputStream newOut = (TeeOutputStream) new TeeOutputStream();
newOut.connect(wrapperOut);
// pipe output to console only if it is visible
if (visible)
newOut.connect(System.out);
_outStream = wrapperOut;
System.setOut(new PrintStream(newOut));
}
catch (Throwable e)
{
e.printStackTrace();
}
try
{
PrintStream wrapperErr = (PrintStream) new CyclicBufferFilePrintStream(fErr);
TeeOutputStream newErr = (TeeOutputStream) new TeeOutputStream();
newErr.connect(wrapperErr);
// pipe output to console only if it is visible
if (visible)
newErr.connect(System.err);
_errStream = newErr;
System.setErr(new PrintStream(newErr));
}
catch (Throwable e)
{