Class MaxSizeInputStream

java.lang.Object
java.io.InputStream
eu.europa.esig.dss.spi.client.http.MaxSizeInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class MaxSizeInputStream
extends InputStream
Used to limit the size of fetched data.
  • Constructor Details

    • MaxSizeInputStream

      public MaxSizeInputStream​(InputStream wrappedStream, long maxSize, String url)
      The default constructor for NativeHTTPDataLoader.MaxSizeInputStream.
      Parameters:
      wrappedStream - the wrapped stream
      maxSize - the maximum size to read
      url - the url source
  • Method Details