Class DynamicInputStream
java.lang.Object
java.io.InputStream
net.thevpc.common.io.DynamicInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DynamicInputStream
public DynamicInputStream(int bufferSize)
-
-
Method Details
-
getAvailableCount
public int getAvailableCount() -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
push
public int push(byte[] other) -
push
public int push(byte[] other, int from, int count) -
requestMore
- Throws:
IOException
-