java.lang.Object
java.io.OutputStream
net.i2p.i2ptunnel.util.DummyOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Write to nowhere.
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class OutputStream
nullOutputStream
Constructor Details
DummyOutputStream
public DummyOutputStream()Creates a stream that discards all writes.
Method Details
write
public void write(int val) - Specified by:
writein classOutputStream
write
public void write(byte[] src) - Overrides:
writein classOutputStream
write
public void write(byte[] src, int off, int len) - Overrides:
writein classOutputStream
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