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
AnInputStreamthat wraps anIteratorwhich 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 intavailable()intread()-
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:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
-