org.apache.tools.ant.util
public class KeepAliveOutputStream extends FilterOutputStream
In code-language it means that it is not necessary to do:
if (out != System.out && out!= System.err) { out.close(); }
Constructor Summary | |
---|---|
KeepAliveOutputStream(OutputStream out)
Constructor of KeepAliveOutputStream.
|
Method Summary | |
---|---|
void | close()
This method does nothing. |
static PrintStream | wrapSystemErr()
Convenience factory method that returns a non-closing
PrintStream around System.err.
|
static PrintStream | wrapSystemOut()
Convenience factory method that returns a non-closing
PrintStream around System.out.
|
Parameters: out an OutputStream value, it shoudl be standard output.
Throws: IOException as we are overridding FilterOutputStream.
Since: Ant 1.8.0
Since: Ant 1.8.0