com.teamscale.jacoco.agent.util.NullOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-jacoco-agent Show documentation
Show all versions of teamscale-jacoco-agent Show documentation
JVM profiler that simplifies various aspects around recording and uploading test coverage
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
}
}