Skip to content
Snippets Groups Projects
Commit c2cd6647 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Add ProgressWriterNull that doesn't print anything anywhere

parent 2fb106a8
Branches
No related tags found
No related merge requests found
package bdv.export;
import java.io.OutputStream;
import java.io.PrintStream;
public class ProgressWriterNull implements ProgressWriter
{
private final PrintStream blackhole;
public ProgressWriterNull()
{
blackhole = new PrintStream( new OutputStream() {
@Override
public void write( final int b )
{}
@Override
public void write( final byte[] b )
{}
@Override
public void write( final byte[] b, final int off, final int len )
{}
} );
}
@Override
public PrintStream out()
{
return blackhole;
}
@Override
public PrintStream err()
{
return blackhole;
}
@Override
public void setProgress( final double completionRatio )
{}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment