Package org.duracloud.stitch.stream
Class MultiContentInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.duracloud.stitch.stream.MultiContentInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MultiContentInputStream extends InputStream
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
Constructors Constructor Description MultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems)MultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems, MultiContentInputStreamListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidnotifyContentIdRead()intread()-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
MultiContentInputStream
public MultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems, MultiContentInputStreamListener listener)
-
MultiContentInputStream
public MultiContentInputStream(DataSource dataSource, List<ContentItem> contentItems)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
notifyContentIdRead
protected void notifyContentIdRead()
-
-