Closeable, AutoCloseablepublic class ClosedInputStream extends InputStream
Typically uses of this class include testing for corner cases in methods
that accept input streams and acting as a sentinel value instead of a
null input stream.
| Modifier and Type | Field | Description |
|---|---|---|
static ClosedInputStream |
CLOSED_INPUT_STREAM |
A singleton.
|
| Constructor | Description |
|---|---|
ClosedInputStream() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
read() |
Returns -1 to indicate that the stream is closed.
|
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTopublic static final ClosedInputStream CLOSED_INPUT_STREAM
public int read()
read in class InputStreamCopyright © 2026 GeneXus S.A.. All rights reserved.