Package net.solarnetwork.io
Class ConcatenatingInputStream
java.lang.Object
java.io.InputStream
net.solarnetwork.io.ConcatenatingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An
InputStream that is the concatenation of multiple streams.- Since:
- 1.44
- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionConcatenatingInputStream(InputStream[] streams) Construct from an array of input streams.ConcatenatingInputStream(Collection<InputStream> streams) Construct from a collection of input streams. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ConcatenatingInputStream
Construct from a collection of input streams.- Parameters:
streams- the input streams
-
ConcatenatingInputStream
Construct from an array of input streams.- Parameters:
streams- the input streams
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-