org.apache.tools.ant.util
public class KeepAliveInputStream extends FilterInputStream
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)
Constructor of KeepAliveInputStream.
|
Method Summary | |
---|---|
void | close()
This method does nothing. |
static InputStream | wrapSystemIn()
Convenience factory method that returns a non-closing
InputStream around System.in.
|
Parameters: in an InputStream value, it should be standard input.
Throws: IOException as we are overridding FilterInputStream.
Since: Ant 1.8.0