Project JXTA

net.jxta.util
Class DevNullWriter

java.lang.Object
  extended byjava.io.Writer
      extended bynet.jxta.util.DevNullWriter

public class DevNullWriter
extends Writer

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


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DevNullWriter()
          Creates a new instance of DevNullOutputStream
 
Method Summary
 void close()
          

Does nothing....

 void flush()
          

Does nothing....

 void write(char[] b)
          

Does nothing....

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

Does nothing....

 void write(String str, int offset, int len)
          

Does nothing....

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

Constructor Detail

DevNullWriter

public DevNullWriter()
Creates a new instance of DevNullOutputStream

Method Detail

close

public void close()

Does nothing....


flush

public void flush()

Does nothing....


write

public void write(char[] b)

Does nothing....


write

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

Does nothing....


write

public void write(String str,
                  int offset,
                  int len)

Does nothing....


JXTA J2SE