1 16 17 package org.apache.log4j.performance; 18 19 import java.io.Writer ; 20 import java.io.IOException ; 21 22 35 public class NOPWriter extends Writer { 36 37 public void write(char[] cbuf) throws IOException {} 38 39 public void write(char[] cbuf, int off, int len) throws IOException {} 40 41 42 public void write(int b) throws IOException {} 43 44 public void write(String s) throws IOException {} 45 46 public void write(String s, int off, int len) throws IOException {} 47 48 public void flush() throws IOException { 49 } 50 51 public void close() throws IOException { 52 System.err.println("Close called."); 53 } 54 } 55 | Popular Tags |