public final class DevZero extends InputStream
/dev/zero as InputStream. In other words the DevZero is a dummy
InputStream that produces infinite zeros. | Modifier and Type | Field and Description |
|---|---|
static DevZero |
INSTANCE
The singleton instance.
|
| Modifier | Constructor and Description |
|---|---|
private |
DevZero()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic static final DevZero INSTANCE
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
read in class InputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamCopyright © 2001–2016 mmm-Team. All rights reserved.