public class DummyOutputStream extends OutputStream
| Constructor and Description |
|---|
DummyOutputStream()Create a stream that discards all output |
| Modifier and Type | Method and Description |
|---|---|
void | close() |
void | flush() |
void | write(byte[] src)Discard all bytes in the array. |
void | write(byte[] src,
int off,
int len)Discard bytes from the array. |
void | write(int val)Discard a single byte. |
public DummyOutputStream()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreampublic void write(byte[] src)
write in class OutputStreamsrc - the byte array (ignored)public void write(byte[] src,
int off,
int len)write in class OutputStreamsrc - the byte array (ignored)off - the start offset (ignored)len - the number of bytes (ignored)public void write(int val)
write in class OutputStreamval - the byte value (ignored)