public class ClosedInputStream
extends java.io.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 and Description |
---|---|
static ClosedInputStream |
CLOSED_INPUT_STREAM
A singleton.
|
Constructor and Description |
---|
ClosedInputStream() |
Modifier and Type | Method and Description |
---|---|
int |
read()
Returns -1 to indicate that the stream is closed.
|
public static final ClosedInputStream CLOSED_INPUT_STREAM
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"