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

fi.evolver.utils.stream.VoidOutputStream Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package fi.evolver.utils.stream;

import java.io.OutputStream;


/**
 * A simple OutputStream that doesn't do anything.
 *
 * @author Paavo Koskinen
 *
 */
public class VoidOutputStream extends OutputStream {

	@Override
	public void close() { }

	@Override
	public void flush() { }

	@Override
	public void write(int b) { }

	@Override
	public void write(byte[] b) { }

	@Override
	public void write(byte[] b, int off, int len) { }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy