Project JXTA

net.jxta.util
Class DevNullWriter

java.lang.Object
  extended by java.io.Writer
      extended by net.jxta.util.DevNullWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

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
append, append, append, append, append, append, 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....

Specified by:
close in interface Closeable
Specified by:
close in class Writer

flush

public void flush()

Does nothing....

Specified by:
flush in interface Flushable
Specified by:
flush in class Writer

write

public void write(char[] b)

Does nothing....

Overrides:
write in class Writer

write

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

Does nothing....

Specified by:
write in class Writer

write

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

Does nothing....

Overrides:
write in class Writer

JXTA J2SE