All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fge.compiler.DevNull Maven / Gradle / Ivy

There is a newer version: 0.8.2
Show newest version
package com.github.fge.compiler;

import java.io.IOException;
import java.io.Writer;

public final class DevNull
    extends Writer
{
    private static final Writer INSTANCE = new DevNull();

    public static Writer getInstance()
    {
        return INSTANCE;
    }

    @Override
    public void write(final char[] cbuf, final int off, final int len)
        throws IOException
    {
    }

    @Override
    public void flush()
        throws IOException
    {
    }

    @Override
    public void close()
        throws IOException
    {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy