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.OutputStream
An 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 void
write(byte[] b)
Write to dev null.void
write(byte[] b, int off, int len)
Write to dev null.void
write(int b)
Write to dev null.
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
Write to dev null.- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
Write to dev null.- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException
Write to dev null.- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
-