Class ResourceIteratorInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.sling.servlets.post.impl.helper.ResourceIteratorInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ResourceIteratorInputStream extends InputStream
An input stream that reads from a list of resources that can be adapted into input streams.
-
-
Constructor Summary
Constructors Constructor Description ResourceIteratorInputStream(Iterator<org.apache.sling.api.resource.Resource> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ResourceIteratorInputStream
public ResourceIteratorInputStream(Iterator<org.apache.sling.api.resource.Resource> iterator)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
-