EmptyInputStream@Deprecated public final class EmptyInputStream extends InputStream
| 限定符和类型 | 字段和说明 |
|---|---|
static EmptyInputStream |
INSTANCE
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available()
已过时。
Returns
0. |
void |
close()
已过时。
Noop.
|
void |
mark(int readLimit)
已过时。
Noop.
|
boolean |
markSupported()
已过时。
Returns
true. |
int |
read()
已过时。
Returns
-1. |
int |
read(byte[] buf)
已过时。
Returns
-1. |
int |
read(byte[] buf,
int off,
int len)
已过时。
Returns
-1. |
void |
reset()
已过时。
Noop.
|
long |
skip(long n)
已过时。
Returns
0. |
public static final EmptyInputStream INSTANCE
public int available()
0.available 在类中 InputStreampublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreampublic void mark(int readLimit)
mark 在类中 InputStreampublic boolean markSupported()
true.markSupported 在类中 InputStreampublic int read()
-1.read 在类中 InputStreampublic int read(byte[] buf)
-1.read 在类中 InputStreampublic int read(byte[] buf,
int off,
int len)
-1.read 在类中 InputStreampublic void reset()
reset 在类中 InputStreampublic long skip(long n)
0.skip 在类中 InputStreamCopyright © 2023. All rights reserved.