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

com.teamscale.jacoco.agent.util.NullOutputStream Maven / Gradle / Ivy

Go to download

JVM profiler that simplifies various aspects around recording and uploading test coverage

There is a newer version: 34.0.2
Show newest version
package com.teamscale.jacoco.agent.util;

import org.jetbrains.annotations.NotNull;

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

/** NOP output stream implementation. */
public class NullOutputStream extends OutputStream {

	public NullOutputStream() {
		// do nothing
	}

	@Override
	public void write(final byte @NotNull [] b, final int off, final int len) {
		// to /dev/null
	}

	@Override
	public void write(final int b) {
		// to /dev/null
	}

	@Override
	public void write(final byte @NotNull [] b) throws IOException {
		// to /dev/null
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy