Package net.runelite.client.util
Class CountingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- net.runelite.client.util.CountingInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class CountingInputStream extends FilterInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description CountingInputStream(InputStream in, IntConsumer changed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
markSupported()
int
read()
int
read(byte[] b, int off, int len)
long
skip(long n)
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
CountingInputStream
public CountingInputStream(InputStream in, IntConsumer changed)
-
-
Method Detail
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterInputStream
-
-