Package jadex.commons
Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- jadex.commons.NullOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class NullOutputStream extends java.io.OutputStreamAn output stream that writes to dev null.
-
-
Constructor Summary
Constructors Constructor Description NullOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] b)Write to dev null.voidwrite(byte[] b, int off, int len)Write to dev null.voidwrite(int b)Write to dev null.
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOExceptionWrite to dev null.- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOExceptionWrite to dev null.- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOExceptionWrite to dev null.- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
-