![JAR search and dependency download from the Maven repository](/logo.png)
de.christofreichardt.diagnosis.io.NullOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracelogger Show documentation
Show all versions of tracelogger Show documentation
A trace tool which produces clearly arranged logs by indenting the trace messages depending on the depth of the call stack.
/*
* NullOutputStream.java
*/
package de.christofreichardt.diagnosis.io;
import java.io.OutputStream;
import java.io.IOException;
/**
* This OutputStream discards all bytes that are written into it.
*
* @author Christof Reichardt
*/
final public class NullOutputStream extends OutputStream {
/**
* default constructor.
*/
public NullOutputStream() {
super();
}
/**
* Pseudo write()-method.
*
* @param b won't be evaluated
*/
@Override
public void write(int b) {
}
/**
* Pseudo write()-method.
*
* @param b won't be evaluated
* @param off won't be evaluated
* @param len won't be evaluated
*/
@Override
public void write(byte[] b, int off, int len) {
}
/**
* Pseudo write()-method.
*
* @param b won't be evaluated
*/
@Override
public void write(byte[] b) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy