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
-
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:
write
in 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:
write
in 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:
write
in 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.
-