lapisx.io
Class NullOutputStream
java.lang.Object
java.io.OutputStream
lapisx.io.NullOutputStream
- public class NullOutputStream
- extends OutputStream
NullOutputStream is used when the OutuputStream interface is
required, but when written bytes have no destination. Note that
this class is implemented using the Singleton pattern, and is
accessed through the static getInstance() method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static final NullOutputStream instance
NullOutputStream
protected NullOutputStream()
getInstance
public static NullOutputStream getInstance()
write
public void write(int b)
write
public void write(byte[] b,
int off,
int len)
write
public void write(byte[] b)