Package herddb.utils
Class SimpleByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- herddb.utils.SimpleByteArrayInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class SimpleByteArrayInputStream extends InputStream
A very simple InputStream which wraps a byte buffer- Author:
- enrico.olivelli
-
-
Constructor Summary
Constructors Constructor Description SimpleByteArrayInputStream(byte[] buf)SimpleByteArrayInputStream(byte[] buf, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()intread()intread(byte[] b, int off, int len)-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read()
- Specified by:
readin classInputStream
-
read
public int read(byte[] b, int off, int len)- Overrides:
readin classInputStream
-
available
public int available()
- Overrides:
availablein classInputStream
-
-