Package io.datarouter.bytes
Class MultiByteArrayInputStream
java.lang.Object
java.io.InputStream
io.datarouter.bytes.MultiByteArrayInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionMultiByteArrayInputStream(io.datarouter.scanner.Scanner<byte[]> arrays) MultiByteArrayInputStream(List<byte[]> arrays) -
Method Summary
Modifier and TypeMethodDescriptionintread()intread(byte[] destination, int off, int len) byte[]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
public MultiByteArrayInputStream(io.datarouter.scanner.Scanner<byte[]> arrays) -
MultiByteArrayInputStream
-
-
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
-