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(@NotNull InputStream in)
BoundedInputStream(@NotNull InputStream in, int maxBytesRead)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(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
readAllBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
BoundedInputStream
public BoundedInputStream(@NotNull @NotNull InputStream in, int maxBytesRead)
-
BoundedInputStream
public BoundedInputStream(@NotNull @NotNull InputStream in)
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] buf, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
-