Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » performance » [javadoc | source]
org.apache.log4j.performance
public class: NOPWriter [javadoc | source]
java.lang.Object
   java.io.Writer
      org.apache.log4j.performance.NOPWriter

All Implemented Interfaces:
    Closeable, Flushable, Appendable

Extends Writer with methods that return immediately without doing anything. This class is used to measure the cost of constructing a log message but not actually writing to any device.

The org.apache.log4j.performance.NOPWriter class is intended for internal use only. Consequently, it is not included in the log4j.jar file.

Method from org.apache.log4j.performance.NOPWriter Summary:
close,   flush,   write,   write,   write,   write,   write
Methods from java.io.Writer:
append,   append,   append,   append,   append,   append,   close,   flush,   write,   write,   write,   write,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.performance.NOPWriter Detail:
 public  void close() throws IOException 
 public  void flush() throws IOException 
 public  void write(char[] cbuf) throws IOException 
 public  void write(int b) throws IOException 
 public  void write(String s) throws IOException 
 public  void write(char[] cbuf,
    int off,
    int len) throws IOException 
 public  void write(String s,
    int off,
    int len) throws IOException