KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > matuschek > util > NullWriter


1 package net.matuschek.util;
2
3 /*********************************************
4     Copyright (c) 2001 by Daniel Matuschek
5 *********************************************/

6
7 import java.io.Writer JavaDoc;
8                                          
9 /**
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 JavaDoc {
17
18   public NullWriter() {}
19
20   public void close() {}
21
22   public void flush() {}
23
24   public void write(char[] cbuf, int off, int len) {}
25 }
26
Popular Tags