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

net.pincette.io.DevNullInputStream Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package net.pincette.io;

import java.io.InputStream;

/** An empty input stream. */
public class DevNullInputStream extends InputStream {
  @Override
  public int available() {
    return 0;
  }

  public int read() {
    return -1;
  }

  @Override
  public int read(final byte[] b) {
    return -1;
  }

  @Override
  public int read(final byte[] b, final int off, final int len) {
    return -1;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy