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

ro.isdc.wro.util.io.NullOutputStream Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package ro.isdc.wro.util.io;

import java.io.OutputStream;


/**
 * Implementation of {@link OutputStream} that simply discards written bytes.
 *
 * @author Alex Objelean
 * @since 1.7.0
 */
public final class NullOutputStream
    extends OutputStream {
  /**
   * Discards the specified int.
   */
  @Override
  public void write(final int b) {
  }

  /**
   * Discards the specified byte array.
   */
  @Override
  public void write(final byte[] b, final int off, final int len) {
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy