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

de.christofreichardt.diagnosis.io.NullOutputStream Maven / Gradle / Ivy

Go to download

A trace tool which produces clearly arranged logs by indenting the trace messages depending on the depth of the call stack.

There is a newer version: 1.10.0
Show newest version
/*
 * 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