Class MaxSizeInputStream
java.lang.Object
java.io.InputStream
eu.europa.esig.dss.spi.client.http.MaxSizeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Used to limit the size of fetched data.
-
Constructor Summary
ConstructorsConstructorDescriptionMaxSizeInputStream(InputStream wrappedStream, long maxSize, String url) The default constructor for NativeHTTPDataLoader.MaxSizeInputStream. -
Method Summary
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:
readin classInputStream- Throws:
IOException
-