public final class DevNullTarget extends OutputStream
/dev/null
as OutputStream
. In other words the DevNullTarget
is a
dummy OutputStream
that ignores all the data written.Modifier and Type | Field and Description |
---|---|
static DevNullTarget |
INSTANCE
The singleton instance.
|
Modifier | Constructor and Description |
---|---|
private |
DevNullTarget()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, write
public static final DevNullTarget INSTANCE
public void write(int b)
write
in class OutputStream
public void write(byte[] b, int off, int len)
write
in class OutputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
Copyright © 2001–2016 mmm-Team. All rights reserved.