public interface OracleBlob extends Blob
Blob .
Generally any new code should avoid the direct use of the class BLOB. For variable declarations use the interface Blob or this interface as required. Instead of the static methods BLOB.createTemporary(java.sql.Connection, boolean, int) and BLOB.empty_lob() please use Connection.createBlob() and BLOB.getEmptyBLOB() respectively.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close a previously opened BLOB.
|
InputStream |
getBinaryStream(long pos)
Read from the BLOB as a stream at the requested position.
|
int |
getBytes(long pos, int length, byte[] buf)
Oracle extension.
|
boolean |
isEmptyLob()
Return true if the lob locator points to a empty blob.
|
boolean |
isOpen()
Check whether the BLOB is opened.
|
boolean |
isSecureFile()
Returns
true if this is a SecureFile (LOBs with the STORE AS SECUREFILE option, which were introduced in Oracle Database 11g Release 1). |
boolean |
isTemporary()
Return true if the lob locator points to a temporary blob.
|
void |
open(LargeObjectAccessMode mode)
Open a BLOB in the indicated mode.
|
SQLXML |
toSQLXML()
Returns an object which impements java.sql.SQLXML with content take from this Clob.
|
SQLXML |
toSQLXML(int csid)
Returns an object which impements java.sql.SQLXML with content taken from this Blob.
|
free, getBinaryStream, getBinaryStream, getBytes, length, position, position, setBinaryStream, setBytes, setBytes, truncatevoid open(LargeObjectAccessMode mode) throws SQLException
SQLExceptionvoid close()
throws SQLException
SQLExceptionboolean isOpen()
throws SQLException
SQLExceptionint getBytes(long pos,
int length,
byte[] buf)
throws SQLException
pos - is the first byte of the blob to be extracted.length - is the number of consecutive bytes to be copied.buf - is the buffer to had the extracted bytes.SQLExceptionboolean isEmptyLob()
throws SQLException
SQLExceptionboolean isSecureFile()
throws SQLException
true if this is a SecureFile (LOBs with the STORE AS SECUREFILE option, which were introduced in Oracle Database 11g Release 1).true if this is a SecureFile and false otherwise.SQLExceptionInputStream getBinaryStream(long pos) throws SQLException
pos - is the position data to be read.SQLExceptionboolean isTemporary()
throws SQLException
SQLExceptionSQLXML toSQLXML() throws SQLException
SQLExceptionSQLXML toSQLXML(int csid) throws SQLException
SQLException