java.io.Serializable
public class NullOutputStream
extends java.io.OutputStream
implements java.io.Serializable
Constructor | Description |
---|---|
NullOutputStream() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
write(byte[] bytes) |
Writes to the stream (in this case, does nothing).
|
void |
write(byte[] bytes,
int off,
int len) |
Writes to the stream (in this case, does nothing).
|
void |
write(int i) |
Writes to the stream (in this case, does nothing).
|
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
i
- the value.java.io.IOException
- if there is an I/O problem.public void write(byte[] bytes) throws java.io.IOException
write
in class java.io.OutputStream
bytes
- the bytes.java.io.IOException
- if there is an I/O problem.public void write(byte[] bytes, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
bytes
- the bytes.off
- the start offset in the data.len
- the number of bytes to write.java.io.IOException
- if there is an I/O problem.