Package com.adobe.testing.s3mock.util
Class BoundedInputStream
-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class BoundedInputStream extends InputStream
Implementation of InputStream that limits the number of bytes that can be read from the underlying
-
-
Constructor Summary
Constructors Constructor Description BoundedInputStream(InputStream input, Long maxBytes)
-
Method Summary
Modifier and Type Method Description Integerread()Integerread(ByteArray b, Integer off, Integer len)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo -
Methods inherited from class java.lang.AutoCloseable
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-