org.apache.tools.ant.util

Class 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();
 }
 

Constructor Summary

KeepAliveOutputStream(OutputStream out)

Method Summary

void
close()
this method does nothing

Constructor Details

KeepAliveOutputStream

public KeepAliveOutputStream(OutputStream out)

Method Details

close

public void close()
            throws IOException
this method does nothing

Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.