Class LimitedInputStream

java.lang.Object
java.io.InputStream
com.itextpdf.io.resolver.resource.LimitedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class LimitedInputStream extends InputStream
Implementation of the InputStream abstract class, which is used to restrict reading bytes from input stream i.e. if more bytes are read than the readingByteLimit, an ReadingByteLimitException exception will be thrown.

Note that the readingByteLimit is not taken into account in the skip(long), available(), InputStream.mark(int) and InputStream.reset() methods.