📄 oracle.sql.blob.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Thu Dec 02 03:30:11 PST 1999 --><title> Class oracle.sql.BLOB</title></head><body><a name="_top_"></a><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-oracle.sql.html">This Package</a> <a href="oracle.sql.BFILE.html#_top_">Previous</a> <a href="oracle.sql.CHAR.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class oracle.sql.BLOB</h1><pre>oracle.sql.BLOB</pre><hr><dl> <dt> public class <b>BLOB</b> <dt> implements Blob</dl><hr><a name="index"></a><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBinaryOutputStream()"><b>getBinaryOutputStream</b></a>() <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBinaryStream()"><b>getBinaryStream</b></a>() <dd> Implements the Blob interface function. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBufferSize()"><b>getBufferSize</b></a>() <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBytes(long, int)"><b>getBytes</b></a>(long, int) <dd> Implements the Blob interface function. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBytes(long, int, byte[])"><b>getBytes</b></a>(long, int, byte[]) <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getChunkSize()"><b>getChunkSize</b></a>() <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getConnection()"><b>getConnection</b></a>() <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#isConvertibleTo(java.lang.Class)"><b>isConvertibleTo</b></a>(Class) <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#length()"><b>length</b></a>() <dd> Implements the Blob interface function. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#position(oracle.jdbc2.Blob, long)"><b>position</b></a>(Blob, long) <dd> Implements the Blob interface function. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#position(byte[], long)"><b>position</b></a>(byte[], long) <dd> Implements the Blob interface function. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#putBytes(long, byte[])"><b>putBytes</b></a>(long, byte[]) <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#toJdbc()"><b>toJdbc</b></a>() <dd> Oracle extension.</dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="length()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="length"><b>length</b></a><pre> public long length() throws SQLException</pre><dl> <dd> Implements the Blob interface function.The length of the Binary Large OBject in bytes.<p> <dd><dl> <dt> <b>Returns:</b> <dd> length of the BLOB in bytes </dl></dd></dl><a name="getBytes(long, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBytes"><b>getBytes</b></a><pre> public byte[] getBytes(long pos, int length) throws SQLException</pre><dl> <dd> Implements the Blob interface function.Return a copy of the contents of the BLOB at the requested position.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pos - is the first byte of the blob to be extracted. <dd> length - is the number of consecutive bytes to be copied. <dt> <b>Returns:</b> <dd> a byte array containing a portion of the BLOB </dl></dd></dl><a name="getBinaryStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBinaryStream"><b>getBinaryStream</b></a><pre> public InputStream getBinaryStream() throws SQLException</pre><dl> <dd> Implements the Blob interface function.Retrieve the entire BLOB as a stream.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a stream containing the BLOB data </dl></dd></dl><a name="position(byte[], long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="position"><b>position</b></a><pre> public long position(byte pattern[], long start) throws SQLException</pre><dl> <dd> Implements the Blob interface function.Determine the byte position at which the given byte pattern<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pattern - is the pattern to search for. <dd> start - is the position at which to begin searching. <dt> <b>Returns:</b> <dd> the position at which the pattern appears, else -1. </dl></dd></dl><a name="position(oracle.jdbc2.Blob, long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="position"><b>position</b></a><pre> public long position(Blob pattern, long start) throws SQLException</pre><dl> <dd> Implements the Blob interface function.Determine the byte position at which the given pattern<p> <dd><dl> <dt> <b>Parameters:</b> <dd> searchstr - is the pattern to search for. <dd> start - is the position at which to begin searching. <dt> <b>Returns:</b> <dd> the position at which the pattern appears, else -1. </dl></dd></dl><a name="getBytes(long, int, byte[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBytes"><b>getBytes</b></a><pre> public int getBytes(long pos, int length, byte buf[]) throws SQLException</pre><dl> <dd> Oracle extension.Copy the contents of the BLOB at the requested position to suppied buffer.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pos - is the first byte of the blob to be extracted. <dd> length - is the number of consecutive bytes to be copied. <dd> buf - is the buffer to had the extracted bytes. <dt> <b>Returns:</b> <dd> a byte array containing a portion of the BLOB </dl></dd></dl><a name="putBytes(long, byte[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="putBytes"><b>putBytes</b></a><pre> public int putBytes(long pos, byte bytes[]) throws SQLException</pre><dl> <dd> Oracle extension.Put data to the BLOB at the requested position.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pos - is the position data to be put. <dd> bytes - is the data to be written into BLOB. <dt> <b>Returns:</b> <dd> the number of bytes actually written. </dl></dd></dl><a name="getBinaryOutputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBinaryOutputStream"><b>getBinaryOutputStream</b></a><pre> public OutputStream getBinaryOutputStream() throws SQLException</pre><dl> <dd> Oracle extension.Write to the BLOB from a stream.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a output stream to write data to the BLOB </dl></dd></dl><a name="getChunkSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getChunkSize"><b>getChunkSize</b></a><pre> public int getChunkSize() throws SQLException</pre><dl> <dd> Oracle extension.Get database LOB storage chunk size in database.<p> <dd><dl> <dt> <b>Returns:</b> <dd> size in bytes </dl></dd></dl><a name="getBufferSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBufferSize"><b>getBufferSize</b></a><pre> public int getBufferSize() throws SQLException</pre><dl> <dd> Oracle extension.Get ideal LOB db access buffer size.<p> <dd><dl> <dt> <b>Returns:</b> <dd> size in bytes </dl></dd></dl><a name="getConnection()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getConnection"><b>getConnection</b></a><pre> public <a href="oracle.jdbc.driver.OracleConnection.html#_top_">OracleConnection</a> getConnection() throws SQLException</pre><dl> <dd> Oracle extension.Get connection object.<p></dl><a name="toJdbc()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="toJdbc"><b>toJdbc</b></a><pre> public Object toJdbc() throws SQLException</pre><dl> <dd> Oracle extension.Convert this data object into its default Java object type.<p> <dd><dl> <dt> <b>Returns:</b> <dd> this object. <dt> <b>Throws:</b> SQLException <dd> if any of the lower layer code throws an exception. </dl></dd></dl><a name="isConvertibleTo(java.lang.Class)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="isConvertibleTo"><b>isConvertibleTo</b></a><pre> public boolean isConvertibleTo(Class jClass)</pre><dl> <dd> Oracle extension.Test whether this data object can be converted to the specifiedJava data type.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> jClassspecifies - the Java data type to test against. <dt> <b>Returns:</b> <dd> true if this data object is convertible to thespecified Java class, and a corresponding xxxValue()method is available; otherwise, a false is returned. </dl></dd></dl><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-oracle.sql.html">This Package</a> <a href="oracle.sql.BFILE.html#_top_">Previous</a> <a href="oracle.sql.CHAR.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -