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, truncate
void open(LargeObjectAccessMode mode) throws SQLException
SQLException
void close() throws SQLException
SQLException
boolean isOpen() throws SQLException
SQLException
int 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.SQLException
boolean isEmptyLob() throws SQLException
SQLException
boolean 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.SQLException
InputStream getBinaryStream(long pos) throws SQLException
pos
- is the position data to be read.SQLException
boolean isTemporary() throws SQLException
SQLException
SQLXML toSQLXML() throws SQLException
SQLException
SQLXML toSQLXML(int csid) throws SQLException
SQLException