public class JDBCBlobLocatorInputStream extends java.io.InputStream implements DatabaseLOBDataCallback
Constructor and Description |
---|
JDBCBlobLocatorInputStream(DatabaseConnection conn,
DatabaseRetrieveLOBDataAttributes attribs,
long length) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getLOBBuffer() |
void |
newLOBData(int ccsid,
int length) |
void |
newLOBLength(long length) |
void |
newLOBSegment(byte[] buffer,
int offset,
int length) |
int |
read() |
void |
setLOBBuffer(byte[] buf) |
public JDBCBlobLocatorInputStream(DatabaseConnection conn, DatabaseRetrieveLOBDataAttributes attribs, long length)
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 int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException