public final class EmptyInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
static EmptyInputStream |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
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 in class InputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic void mark(int readLimit)
mark in class InputStreampublic boolean markSupported()
true.markSupported in class InputStreampublic int read()
-1.read in class InputStreampublic int read(byte[] buf)
-1.read in class InputStreampublic int read(byte[] buf,
int off,
int len)
-1.read in class InputStreampublic void reset()
reset in class InputStreampublic long skip(long n)
0.skip in class InputStreamCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.