Package org.apache.camel.support
Class InputStreamIterator
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.camel.support.InputStreamIterator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class InputStreamIterator extends InputStream
AnInputStream
that wraps anIterator
which reads iterations as byte array data.
-
-
Constructor Summary
Constructors Constructor Description InputStreamIterator(org.apache.camel.TypeConverter converter, Iterator it)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
int
read()
-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
InputStreamIterator
public InputStreamIterator(org.apache.camel.TypeConverter converter, Iterator it)
-
-
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
-
-