Package io.netty.util.internal
Class BoundedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- io.netty.util.internal.BoundedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class BoundedInputStream extends FilterInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description BoundedInputStream(InputStream in)BoundedInputStream(InputStream in, int maxBytesRead)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intread(byte[] buf, int off, int len)-
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, transferTo
-
-
-
-
Constructor Detail
-
BoundedInputStream
public BoundedInputStream(@NotNull InputStream in, int maxBytesRead)
-
BoundedInputStream
public BoundedInputStream(@NotNull InputStream in)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] buf, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
-