JXTA

net.jxta.util
Class DevNullOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.jxta.util.DevNullOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class DevNullOutputStream
extends OutputStream

An OutputStream which simply discards all data written to it. Useful when used with CountingOutputStream. This implementation just ignores everything you do it.


Constructor Summary
DevNullOutputStream()
          Creates a new instance of DevNullOutputStream
 
Method Summary
 void close()
          

Does nothing....

 void flush()
          

Does nothing....

 void write(byte[] b)
          

Does nothing....

 void write(byte[] b, int offset, int len)
          

Does nothing....

 void write(int b)
          

Does nothing....

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevNullOutputStream

public DevNullOutputStream()
Creates a new instance of DevNullOutputStream

Method Detail

close

public void close()

Does nothing....

Specified by:
close in interface Closeable
Overrides:
close in class OutputStream

flush

public void flush()

Does nothing....

Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream

write

public void write(byte[] b)

Does nothing....

Overrides:
write in class OutputStream

write

public void write(byte[] b,
                  int offset,
                  int len)

Does nothing....

Overrides:
write in class OutputStream

write

public void write(int b)

Does nothing....

Specified by:
write in class OutputStream

JXSE