Class ThrottledInputStream

java.lang.Object
java.io.InputStream
ecmwf.common.technical.ThrottledInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ThrottledInputStream extends InputStream
The Class ThrottledInputStream.
  • Constructor Details Link icon

    • ThrottledInputStream Link icon

      public ThrottledInputStream(InputStream inputStream)
      Instantiates a new throttled input stream.
      Parameters:
      inputStream - the input stream
    • ThrottledInputStream Link icon

      public ThrottledInputStream(InputStream inputStream, long maxBytesPerSec)
      Instantiates a new throttled input stream.
      Parameters:
      inputStream - the input stream
      maxBytesPerSec - the max bytes per sec
  • Method Details Link icon