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();
}
| Access | Constructor and Description |
|---|---|
| public | KeepAliveInputStream(InputStream
an InputStream value, it should be standard input. in)Constructor of KeepAliveInputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public static InputStream | Returns: InputStreamConvenience factory method that returns a non-closing InputStream around System.in. |
| KeepAliveInputStream | back to summary |
|---|---|
| public KeepAliveInputStream(InputStream in) Constructor of KeepAliveInputStream.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. This method does nothing.
| |
| wrapSystemIn | back to summary |
|---|---|
| public static InputStream wrapSystemIn() Convenience factory method that returns a non-closing InputStream around System.in.
| |