Package herddb.utils
Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- herddb.utils.NullOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public final class NullOutputStream extends OutputStream
Null Output Stream- Author:
- enrico.olivelli
-
-
Field Summary
Fields Modifier and Type Field Description static NullOutputStreamINSTANCE
-
Constructor Summary
Constructors Constructor Description NullOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Field Detail
-
INSTANCE
public static final NullOutputStream INSTANCE
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
-