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 DatabaseLOBDataCallback
public void newLOBData(int ccsid, int length)
newLOBData
in interface DatabaseLOBDataCallback
public byte[] getLOBBuffer()
getLOBBuffer
in interface DatabaseLOBDataCallback
public void setLOBBuffer(byte[] buf)
setLOBBuffer
in interface DatabaseLOBDataCallback
public void newLOBSegment(byte[] buffer, int offset, int length)
newLOBSegment
in interface DatabaseLOBDataCallback
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
in interface java.sql.Blob
java.sql.SQLException
public void refreshLength() throws java.sql.SQLException
java.sql.SQLException
public long length() throws java.sql.SQLException
length
in interface java.sql.Blob
java.sql.SQLException
public long position(java.sql.Blob pattern, long start) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public long position(byte[] pattern, long start) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos) throws java.sql.SQLException
setBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Blob
java.sql.SQLException
public void free() throws java.sql.SQLException
free
in interface java.sql.Blob
java.sql.SQLException