FileDocCategorySizeDatePackage
NOPWriter.javaAPI DocApache log4j 1.2.151864Sat Aug 25 00:09:36 BST 2007org.apache.log4j.performance

NOPWriter

public class NOPWriter extends Writer

Extends {@link 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.

author
Ceki Gülcü

Fields Summary
Constructors Summary
Methods Summary
public voidclose()

    System.err.println("Close called.");
  
public voidflush()

  
public voidwrite(char[] cbuf)

public voidwrite(char[] cbuf, int off, int len)

public voidwrite(int b)

public voidwrite(java.lang.String s)

public voidwrite(java.lang.String s, int off, int len)