01: /* NullWriter.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Mon May 2 16:29:13 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.io;
20:
21: import java.io.Writer;
22: import java.io.IOException;
23:
24: /**
25: * A writer that drops all output. It hehaves like Unix /dev/null.
26: *
27: * @author tomyeh
28: */
29: public class NullWriter extends Writer {
30: public void write(char[] cbuf, int off, int len) throws IOException {
31: }
32:
33: public void flush() throws IOException {
34: }
35:
36: public void close() throws IOException {
37: }
38: }
|