org.teiid.client.lob
Class LobChunkInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.teiid.client.lob.LobChunkInputStream
All Implemented Interfaces:
java.io.Closeable

public class LobChunkInputStream
extends java.io.InputStream

A InputStream wrapper class for a Lob Chunks. Given a stream of Lob Chunks this class will convert those chunks into InputStream, which can be used to stream the lob data.


Constructor Summary
LobChunkInputStream(LobChunkProducer reader)
           
 
Method Summary
 void close()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LobChunkInputStream

public LobChunkInputStream(LobChunkProducer reader)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException
See Also:
InputStream.close()


Copyright © 2011. All Rights Reserved.