public class InputStreamCombiner
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
private java.io.InputStream[] |
in |
private int |
index |
Constructor and Description |
---|
InputStreamCombiner(java.io.InputStream... in)
Create a new stream combiner using the given streams to read from
|
public InputStreamCombiner(java.io.InputStream... in)
in
- The stream to read from, must be an array with at least
one streampublic int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
private void nextStream()