Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.pentaho.reporting.libraries.repository.dummy.NullOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.io.Serializable,java.lang.AutoCloseable
public class NullOutputStream extends java.io.OutputStream implements java.io.SerializableA null output stream. All data written to this stream is ignored.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
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).
-
-
-
Method Detail
-
write
public void write(int i) throws java.io.IOExceptionWrites to the stream (in this case, does nothing).- Specified by:
writein classjava.io.OutputStream- Parameters:
i- the value.- Throws:
java.io.IOException- if there is an I/O problem.
-
write
public void write(byte[] bytes) throws java.io.IOExceptionWrites to the stream (in this case, does nothing).- Overrides:
writein classjava.io.OutputStream- Parameters:
bytes- the bytes.- Throws:
java.io.IOException- if there is an I/O problem.
-
write
public void write(byte[] bytes, int off, int len) throws java.io.IOExceptionWrites to the stream (in this case, does nothing).- Overrides:
writein classjava.io.OutputStream- Parameters:
bytes- the bytes.off- the start offset in the data.len- the number of bytes to write.- Throws:
java.io.IOException- if there is an I/O problem.
-
-