mk.fsgrep.util
Class OutputRedirector
java.lang.Object
mk.fsgrep.util.OutputRedirector
public class OutputRedirector
- extends java.lang.Object
A utility to redirect stdout/stderr to a file.
- Author:
- Murali Krishnan
Field Summary |
protected static java.io.File |
LOG_FILE
The file where out/err would be redirected. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_FILE
protected static final java.io.File LOG_FILE
- The file where out/err would be redirected.
OutputRedirector
public OutputRedirector()
getInstance
public static OutputRedirector getInstance()
getFileStream
protected java.io.FileOutputStream getFileStream()
getPrintStream
protected java.io.PrintStream getPrintStream()
getOriginalOut
protected java.io.PrintStream getOriginalOut()
getOriginalErr
protected java.io.PrintStream getOriginalErr()
setFileStream
protected void setFileStream(java.io.FileOutputStream val)
setPrintStream
protected void setPrintStream(java.io.PrintStream val)
setOriginalOut
protected void setOriginalOut(java.io.PrintStream val)
setOriginalErr
protected void setOriginalErr(java.io.PrintStream val)
redirect
public void redirect()
restore
public void restore()
Copyright © 2009. All Rights Reserved.