Class NullOutputStream
java.lang.Object
java.io.OutputStream
org.pentaho.reporting.libraries.base.util.NullOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A null output stream. All data written to this stream is ignored.
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
NullOutputStream
public NullOutputStream()Default constructor.
-
-
Method Details
-
write
Writes 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
Writes 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
Writes 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.
-