Package one.microstream.io
Class LimitedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
one.microstream.io.LimitedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class LimitedInputStream extends FilterInputStream
-
Field Summary
-
Method Summary
Modifier and Type Method Description int
available()
void
mark(int readLimit)
static LimitedInputStream
New(InputStream in, long limit)
int
read()
int
read(byte[] bytes, int offset, int length)
void
reset()
long
skip(long n)
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Method Details
-
New
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
mark
public void mark(int readLimit)- Overrides:
mark
in classFilterInputStream
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-