public class MultiInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
(package private) int |
currentStream |
(package private) java.util.List<java.io.InputStream> |
streams
InputStream
|
Constructor and Description |
---|
MultiInputStream() |
Modifier and Type | Method and Description |
---|---|
void |
addStream(java.io.InputStream stream) |
int |
available() |
void |
close() |
boolean |
prepare()
Finalize the stream and allow it to be read
from.
|
int |
read() |
java.util.List<java.io.InputStream> streams
int currentStream
public void addStream(java.io.InputStream stream)
public boolean prepare()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public 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