Package org.duracloud.stitch.stream
Class MultiContentInputStream
java.lang.Object
java.io.InputStream
org.duracloud.stitch.stream.MultiContentInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
This class exposes a single InputStream composed of the sequence of content
streams read on-demand from the provided list of ContentItems.
- Author:
- Andrew Woods Date: 9/8/11
-
Constructor Summary
ConstructorsConstructorDescriptionMultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems) MultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems, MultiContentInputStreamListener listener) -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
MultiContentInputStream
public MultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems, MultiContentInputStreamListener listener) -
MultiContentInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
notifyContentIdRead
protected void notifyContentIdRead()
-