Package com.adobe.internal.io
Class ChainedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.adobe.internal.io.ChainedInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ChainedInputStream extends InputStream
A wrapper stream representing multiple underlying streams as a single stream.
-
-
Constructor Summary
Constructors Constructor Description ChainedInputStream(InputStream[] streams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
int
read()
-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ChainedInputStream
public ChainedInputStream(InputStream[] streams)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-