java.lang.Object
java.io.OutputStream
i2p.susi.util.DummyOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
OutputStream that discards all written data.
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class OutputStream
nullOutputStream
Constructor Details
DummyOutputStream
public DummyOutputStream()Create a stream that discards all output.
Method Details
write
public void write(int val) Discard a single byte.- Specified by:
writein classOutputStream- Parameters:
val- the byte value (ignored)
write
public void write(byte[] src) Discard all bytes in the array.- Overrides:
writein classOutputStream- Parameters:
src- the byte array (ignored)
write
public void write(byte[] src, int off, int len) Discard bytes from the array.- Overrides:
writein classOutputStream- Parameters:
src- the byte array (ignored)off- the start offset (ignored)len- the number of bytes (ignored)
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream