public final class JDBCBlobLocator extends java.lang.Object implements java.sql.Blob, DatabaseLOBDataCallback
| Constructor and Description | 
|---|
| JDBCBlobLocator(DatabaseConnection conn,
               DatabaseRetrieveLOBDataAttributes attrib) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | free() | 
| java.io.InputStream | getBinaryStream() | 
| java.io.InputStream | getBinaryStream(long pos,
               long length) | 
| byte[] | getBytes(long pos,
        int length) | 
| byte[] | getLOBBuffer() | 
| long | length() | 
| void | newLOBData(int ccsid,
          int length) | 
| void | newLOBLength(long length) | 
| void | newLOBSegment(byte[] buffer,
             int offset,
             int length) | 
| long | position(java.sql.Blob pattern,
        long start)Not implemented. | 
| long | position(byte[] pattern,
        long start)Not implemented. | 
| void | refreshLength() | 
| java.io.OutputStream | setBinaryStream(long pos)Not implemented. | 
| int | setBytes(long pos,
        byte[] bytes)Not implemented. | 
| int | setBytes(long pos,
        byte[] bytes,
        int offset,
        int len)Not implemented. | 
| void | setLOBBuffer(byte[] buf) | 
| void | truncate(long len)Not implemented. | 
public JDBCBlobLocator(DatabaseConnection conn, DatabaseRetrieveLOBDataAttributes attrib)
public void newLOBLength(long length)
newLOBLength in interface DatabaseLOBDataCallbackpublic void newLOBData(int ccsid,
              int length)
newLOBData in interface DatabaseLOBDataCallbackpublic byte[] getLOBBuffer()
getLOBBuffer in interface DatabaseLOBDataCallbackpublic void setLOBBuffer(byte[] buf)
setLOBBuffer in interface DatabaseLOBDataCallbackpublic void newLOBSegment(byte[] buffer,
                 int offset,
                 int length)
newLOBSegment in interface DatabaseLOBDataCallbackpublic java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(long pos,
                                  long length)
                                    throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes(long pos,
              int length)
                throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic void refreshLength()
                   throws java.sql.SQLException
java.sql.SQLExceptionpublic long length()
            throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(java.sql.Blob pattern,
            long start)
              throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(byte[] pattern,
            long start)
              throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream(long pos)
                                     throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long pos,
           byte[] bytes)
             throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long pos,
           byte[] bytes,
           int offset,
           int len)
             throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic void truncate(long len)
              throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionpublic void free()
          throws java.sql.SQLException
free in interface java.sql.Blobjava.sql.SQLException