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