zcommon/src/main/java/org/zkoss/io/NullWriter.java
/* NullWriter.java
Purpose:
Description:
History:
Mon May 2 16:29:13 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.io;
import java.io.Writer;
import java.io.IOException;
/**
* A writer that drops all output. It behaves like Unix /dev/null.
*
* @author tomyeh
*/
public class NullWriter extends Writer {
public void write(char[] cbuf, int off, int len) throws IOException {
}
public void flush() throws IOException {
}
public void close() throws IOException {
}
}