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 Summary
Constructors Constructor Description MaxSizeInputStream(InputStream wrappedStream, long maxSize, String url)
The default constructor for NativeHTTPDataLoader.MaxSizeInputStream. -
Method Summary
Modifier and Type Method Description int
read()
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
-
Constructor Details
-
MaxSizeInputStream
The default constructor for NativeHTTPDataLoader.MaxSizeInputStream.- Parameters:
wrappedStream
- the wrapped streammaxSize
- the maximum size to readurl
- the url source
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-