com.jsftoolkit.utils.NullWriter Maven / Gradle / Ivy
Go to download
The core classes for the JSF Toolkit Component Framework. Includes all
framework base and utility classes as well as component
kick-start/code-generation and registration tools.
Also includes some classes for testing that are reused in other projects.
They cannot be factored out into a separate project because they are
referenced by the tests and they reference this code (circular
dependence).
The newest version!
package com.jsftoolkit.utils;
import java.io.IOException;
import java.io.Writer;
/**
* Writes to nowhere. All written bytes are discarded.
*
* @author noah
*
*/
public class NullWriter extends Writer {
@Override
public void close() throws IOException {
// nothing to do
}
@Override
public void flush() throws IOException {
// nothing to do
}
@Override
public void write(char[] cbuf, int off, int len) throws IOException {
// do nothing
}
}