public class NullOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
NullOutputStream()
Construct NullOutputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b)
Writes (actually ignores) array of bytes to output stream.
|
void |
write(byte[] b,
int off,
int len)
Write (actually, ignore) bytes from byte array to output stream.
|
void |
write(int i)
Write (actually, ignore) integer value to output stream.
|
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
b
- The bytes to output.java.io.IOException
- If there is an I/O error.
Nothing is actually written.
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
b
- The bytes to output.off
- Starting offset in the byte array.len
- Number of bytes to write.java.io.IOException
- If there is an I/O error.
Nothing is actually written.
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
i
- Value to write.java.io.IOException
- If there is an I/O error.
Nothing is actually written.