Package io.datarouter.storage.util
Class MultiByteArrayInputStream
java.lang.Object
java.io.InputStream
io.datarouter.storage.util.MultiByteArrayInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MultiByteArrayInputStream extends InputStream
-
Constructor Summary
Constructors Constructor Description MultiByteArrayInputStream(io.datarouter.scanner.Scanner<byte[]> arrays)MultiByteArrayInputStream(Iterable<byte[]> arrays) -
Method Summary
Modifier and Type Method Description intread()intread(byte[] destination, int off, int len)byte[]readAllBytes()intreadNBytes(byte[] buffer, int off, int len)byte[]readNBytes(int len)longtransferTo(OutputStream out)Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, reset, skip, skipNBytes
-
Constructor Details
-
MultiByteArrayInputStream
-
MultiByteArrayInputStream
public MultiByteArrayInputStream(io.datarouter.scanner.Scanner<byte[]> arrays)
-
-
Method Details
-
read
public int read()- Specified by:
readin classInputStream
-
read
public int read(byte[] destination, int off, int len)- Overrides:
readin classInputStream
-
readAllBytes
public byte[] readAllBytes()- Overrides:
readAllBytesin classInputStream
-
readNBytes
public byte[] readNBytes(int len)- Overrides:
readNBytesin classInputStream
-
readNBytes
public int readNBytes(byte[] buffer, int off, int len)- Overrides:
readNBytesin classInputStream
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-