Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.pentaho.reporting.libraries.base.util.NullOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class NullOutputStream extends OutputStream
A null output stream. All data written to this stream is ignored.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description NullOutputStream()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] bytes)Writes to the stream (in this case, does nothing).voidwrite(byte[] bytes, int off, int len)Writes to the stream (in this case, does nothing).voidwrite(int i)Writes to the stream (in this case, does nothing).-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
write
public void write(int i) throws IOExceptionWrites to the stream (in this case, does nothing).- Specified by:
writein classOutputStream- Parameters:
i- the value.- Throws:
IOException- if there is an I/O problem.
-
write
public void write(byte[] bytes) throws IOExceptionWrites to the stream (in this case, does nothing).- Overrides:
writein classOutputStream- Parameters:
bytes- the bytes.- Throws:
IOException- if there is an I/O problem.
-
write
public void write(byte[] bytes, int off, int len) throws IOExceptionWrites to the stream (in this case, does nothing).- Overrides:
writein classOutputStream- Parameters:
bytes- the bytes.off- the start offset in the data.len- the number of bytes to write.- Throws:
IOException- if there is an I/O problem.
-
-