FileDocCategorySizeDatePackage
KeepAliveOutputStream.javaAPI DocApache Ant 1.701758Wed Dec 13 06:16:24 GMT 2006org.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();
}

Fields Summary
Constructors Summary
public KeepAliveOutputStream(OutputStream out)
Constructor of KeepAliveOutputStream.

param
out an OutputStream value, it shoudl be standard output.

        super(out);
    
Methods Summary
public voidclose()
This method does nothing.

throws
IOException as we are overridding FilterOutputStream.

        // do not close the stream