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

org.freehep.util.io.DummyOutputStream Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
// Copyright FreeHEP 2003-2009
package org.freehep.util.io;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Equivalent to writing to /dev/nul
 * 
 * @author tonyj
 */
public class DummyOutputStream extends OutputStream {
	/**
	 * Creates a Dummy output steram.
	 */
	public DummyOutputStream() {
	}

	@Override
	public void write(int b) throws IOException {
	}

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy