lapisx.io
Class NullOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended bylapisx.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.


Field Summary
protected static NullOutputStream instance
           
 
Constructor Summary
protected NullOutputStream()
           
 
Method Summary
static NullOutputStream getInstance()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static final NullOutputStream instance
Constructor Detail

NullOutputStream

protected NullOutputStream()
Method Detail

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)