public class SequenceInputStream
extends java.io.InputStream
Constructor and Description |
---|
SequenceInputStream(java.io.InputStream s1,
java.io.InputStream s2)
Construct the SequenceInputStream.
|
SequenceInputStream(java.util.List<java.io.InputStream> e)
Construct the SequenceInputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
addStream(java.io.InputStream in) |
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
public SequenceInputStream(java.util.List<java.io.InputStream> e)
e
- a list of InputStreams to concatpublic SequenceInputStream(java.io.InputStream s1, java.io.InputStream s2)
s1
- s2
- public void addStream(java.io.InputStream in)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[], int, int)
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
InputStream.available()
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
InputStream.close()
Copyright © 2021. All Rights Reserved.