org.jfree.repository.dummy

Class NullOutputStream

public class NullOutputStream extends OutputStream

A null output stream. All data written to this stream is ignored.

Author: Thomas Morgner

Constructor Summary
NullOutputStream()
Default constructor.
Method Summary
voidwrite(int i)
Writes to the stream (in this case, does nothing).
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).

Constructor Detail

NullOutputStream

public NullOutputStream()
Default constructor.

Method Detail

write

public void write(int i)
Writes to the stream (in this case, does nothing).

Parameters: i the value.

Throws: java.io.IOException if there is an I/O problem.

write

public void write(byte[] bytes)
Writes to the stream (in this case, does nothing).

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)
Writes to the stream (in this case, does nothing).

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.