org.apache.tools.ant.util
Class KeepAliveOutputStream
FilterOutputStream
org.apache.tools.ant.util.KeepAliveOutputStream
public class KeepAliveOutputStream
extends FilterOutputStream
Class that can be used to wrap
System.out and
System.err
without getting anxious about any client closing the stream.
In code-language it means that it is not necessary to do:
if (out != System.out && out!= System.err) {
out.close();
}
void | close() - This method does nothing.
|
KeepAliveOutputStream
public KeepAliveOutputStream(OutputStream out)
Constructor of KeepAliveOutputStream.
out
- an OutputStream value, it shoudl be standard output.
close
public void close()
throws IOException
This method does nothing.