Class MaxSizeInputStream

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

public class MaxSizeInputStream extends FilterInputStream
Used to limit the size of fetched data. Throws IOException if the data limit has been reached. Inspired by org.apache.commons.fileupload.util.LimitedInputStream