com.ibm.jtopenlite.database.jdbc
Class JDBCBlobLocatorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.ibm.jtopenlite.database.jdbc.JDBCBlobLocatorInputStream
All Implemented Interfaces:
DatabaseLOBDataCallback, Closeable

public class JDBCBlobLocatorInputStream
extends InputStream
implements DatabaseLOBDataCallback


Constructor Summary
JDBCBlobLocatorInputStream(DatabaseConnection conn, DatabaseRetrieveLOBDataAttributes attribs, long length)
           
 
Method Summary
 byte[] getLOBBuffer()
           
 void newLOBData(int ccsid, int length)
           
 void newLOBLength(long length)
           
 void newLOBSegment(byte[] buffer, int offset, int length)
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, 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

JDBCBlobLocatorInputStream

public JDBCBlobLocatorInputStream(DatabaseConnection conn,
                                  DatabaseRetrieveLOBDataAttributes attribs,
                                  long length)
Method Detail

newLOBLength

public void newLOBLength(long length)
Specified by:
newLOBLength in interface DatabaseLOBDataCallback

newLOBData

public void newLOBData(int ccsid,
                       int length)
Specified by:
newLOBData in interface DatabaseLOBDataCallback

getLOBBuffer

public byte[] getLOBBuffer()
Specified by:
getLOBBuffer in interface DatabaseLOBDataCallback

newLOBSegment

public void newLOBSegment(byte[] buffer,
                          int offset,
                          int length)
Specified by:
newLOBSegment in interface DatabaseLOBDataCallback

read

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