public class ClosedReader extends Reader
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 reader.
| 限定符和类型 | 字段和说明 |
|---|---|
static ClosedReader |
CLOSED_READER_STREAM
A singleton.
|
| 构造器和说明 |
|---|
ClosedReader() |
public static final ClosedReader CLOSED_READER_STREAM
public int read()
public int read(char[] cbuf,
int off,
int len)
throws IOException
read 在类中 ReaderIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 ReaderIOExceptionCopyright © 2022–2023. All rights reserved.