-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public class MarkEnforcingInputStream extends FilterInputStream
Prevents InputStreams from overflowing their buffer by reading data past their read limit.
-
-
Constructor Summary
Constructors Constructor Description MarkEnforcingInputStream(InputStream in)
-
Method Summary
Modifier and Type Method Description synchronized voidmark(int readLimit)intread()intread(@NonNull() Array<byte> buffer, int byteOffset, int byteCount)synchronized voidreset()longskip(long byteCount)intavailable()-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip -
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MarkEnforcingInputStream
MarkEnforcingInputStream(InputStream in)
-
-
-
-