org.apache.tools.ant.util
Class KeepAliveInputStream
FilterInputStreamorg.apache.tools.ant.util.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();
}
void | close()- This method does nothing.
|
KeepAliveInputStream
public KeepAliveInputStream(InputStream in)
Constructor of KeepAliveInputStream.
in - an InputStream value, it should be standard input.
close
public void close()
throws IOException This method does nothing.