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, skip
public static final DevZero INSTANCE
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len)
read
in class InputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
Copyright © 2001–2016 mmm-Team. All rights reserved.