Package org.teiid.dqp.internal.process
Class ByteLobChunkStream
- java.lang.Object
-
- org.teiid.dqp.internal.process.ByteLobChunkStream
-
- All Implemented Interfaces:
LobChunkProducer
public class ByteLobChunkStream extends Object implements LobChunkProducer
A wrapper class, given a InputStream object can convert a underlying stream into sequence of ByteLobChunk objects of given chunk size.
-
-
Constructor Summary
Constructors Constructor Description ByteLobChunkStream(InputStream stream, int chunkSize)
-
-
-
Constructor Detail
-
ByteLobChunkStream
public ByteLobChunkStream(InputStream stream, int chunkSize)
-
-
Method Detail
-
getNextChunk
public LobChunk getNextChunk() throws IOException
- Specified by:
getNextChunk
in interfaceLobChunkProducer
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceLobChunkProducer
- Throws:
IOException
-
-