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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the underlaying stream of producing the chunksLobChunk
getNextChunk()
Gets the next LobChunk from the source, based on the chunk size configured
-
-
-
Constructor Detail
-
ByteLobChunkStream
public ByteLobChunkStream(InputStream stream, int chunkSize)
-
-
Method Detail
-
getNextChunk
public LobChunk getNextChunk() throws IOException
Description copied from interface:LobChunkProducer
Gets the next LobChunk from the source, based on the chunk size configured- Specified by:
getNextChunk
in interfaceLobChunkProducer
- Returns:
- LobChunk at position in the streamble object.
- Throws:
IOException
-
close
public void close() throws IOException
Description copied from interface:LobChunkProducer
Close the underlaying stream of producing the chunks- Specified by:
close
in interfaceLobChunkProducer
- Throws:
IOException
-
-