org.teiid.dqp.internal.process
Class ByteLobChunkStream

java.lang.Object
  extended by org.teiid.dqp.internal.process.ByteLobChunkStream
All Implemented Interfaces:
LobChunkProducer

public class ByteLobChunkStream
extends java.lang.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
ByteLobChunkStream(java.io.InputStream stream, int chunkSize)
           
 
Method Summary
 void close()
           
 LobChunk getNextChunk()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteLobChunkStream

public ByteLobChunkStream(java.io.InputStream stream,
                          int chunkSize)
Method Detail

getNextChunk

public LobChunk getNextChunk()
                      throws java.io.IOException
Specified by:
getNextChunk in interface LobChunkProducer
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface LobChunkProducer
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.