org.apache.tools.ant.util

Class KeepAliveInputStream

public class KeepAliveInputStream extends FilterInputStream

Class that can be used to wrap System.in without getting anxious about any client closing the stream.

In code-language it means that it is not necessary to do:

 if (out != System.in) {
   in.close();
 }
 

Since: Ant 1.6

Constructor Summary
KeepAliveInputStream(InputStream in)
Method Summary
voidclose()
this method does nothing

Constructor Detail

KeepAliveInputStream

public KeepAliveInputStream(InputStream in)

Method Detail

close

public void close()
this method does nothing
Copyright