01: package net.matuschek.util;
02:
03: /*********************************************
04: Copyright (c) 2001 by Daniel Matuschek
05: *********************************************/
06:
07: import java.io.Writer;
08:
09: /**
10: * This class implements a simple Writer that ignores everything
11: * it is like a /dev/null for Java
12: *
13: * @author Daniel Matuschek
14: * @version $Id $
15: */
16: public class NullWriter extends Writer {
17:
18: public NullWriter() {
19: }
20:
21: public void close() {
22: }
23:
24: public void flush() {
25: }
26:
27: public void write(char[] cbuf, int off, int len) {
28: }
29: }
|