📄 oracle.sql.clob.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.CLOB</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.CHAR.html#_top_">Previous</a> <a href="oracle.sql.CharacterBuffer.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class oracle.sql.CLOB</h1><pre>oracle.sql.CLOB</pre><hr><dl> <dt> public class <b>CLOB</b> <dt> implements Clob</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="#getAsciiOutputStream()"><b>getAsciiOutputStream</b></a>() <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getAsciiStream()"><b>getAsciiStream</b></a>() <dd> Implements the Clob interface method. <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="#getCharacterOutputStream()"><b>getCharacterOutputStream</b></a>() <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getCharacterStream()"><b>getCharacterStream</b></a>() <dd> Implements the Clob interface method. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getChars(long, int, char[])"><b>getChars</b></a>(long, int, char[]) <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="#getSubString(long, int)"><b>getSubString</b></a>(long, int) <dd> Implements the Clob interface method. <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> Test whether this data object can be converted to the specifiedJava data type. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#length()"><b>length</b></a>() <dd> Implements the Clob interface method. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#position(oracle.jdbc2.Clob, long)"><b>position</b></a>(Clob, long) <dd> Implements the Clob interface method. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#position(java.lang.String, long)"><b>position</b></a>(String, long) <dd> Implements the Clob interface method. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#putChars(long, char[])"><b>putChars</b></a>(long, char[]) <dd> Oracle extension. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#putString(long, java.lang.String)"><b>putString</b></a>(long, String) <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> Convert this data object into its default Java object type.</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 Clob interface method.Returns the number of charactersin the <code>CLOB</code> valuedesignated by this <code>Clob</code> object.<p> <dd><dl> <dt> <b>Returns:</b> <dd> length of the <code>CLOB</code> in characters <dt> <b>Throws:</b> SQLException <dd> if there is an error accessing thelength of the <code>CLOB</code> </dl></dd></dl><a name="getSubString(long, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getSubString"><b>getSubString</b></a><pre> public String getSubString(long pos, int length) throws SQLException</pre><dl> <dd> Implements the Clob interface method.Returns a copy of the specified substringin the <code>CLOB</code> valuedesignated by this <code>Clob</code> object.The substring begins at position<code>pos</code> and has up to <code>length</code> consecutivecharacters.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pos - the first character of the substring to be extracted.The first character is at position 1. <dd> length - the number of consecutive characters to be copied <dt> <b>Returns:</b> <dd> a <code>String</code> that is the specified substring inthe <code>CLOB</code> value designated by this <code>Clob</code> object <dt> <b>Throws:</b> SQLException <dd> if there is an error accessing the<code>CLOB</code> </dl></dd></dl><a name="getCharacterStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getCharacterStream"><b>getCharacterStream</b></a><pre> public Reader getCharacterStream() throws SQLException</pre><dl> <dd> Implements the Clob interface method.Gets the <code>Clob</code> contents as a Unicode stream.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a Unicode stream containing the <code>CLOB</code> data <dt> <b>Throws:</b> SQLException <dd> if there is an error accessing the<code>CLOB</code> </dl></dd></dl><a name="getAsciiStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getAsciiStream"><b>getAsciiStream</b></a><pre> public InputStream getAsciiStream() throws SQLException</pre><dl> <dd> Implements the Clob interface method.Gets the <code>CLOB</code> value designated by this <code>Clob</code>object as a stream of Ascii bytes.<p> <dd><dl> <dt> <b>Returns:</b> <dd> an ascii stream containing the <code>CLOB</code> data <dt> <b>Throws:</b> SQLException <dd> if there is an error accessing the<code>CLOB</code> value </dl></dd></dl><a name="position(java.lang.String, 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(String searchstr, long start) throws SQLException</pre><dl> <dd> Implements the Clob interface method.Determine the character position at which the given substring<p> <dd><dl> <dt> <b>Parameters:</b> <dd> searchstr - is the substring to search for. <dd> start - is the position at which to begin searching. <dt> <b>Returns:</b> <dd> the position at which the substring appears, else -1. </dl></dd></dl><a name="position(oracle.jdbc2.Clob, 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(Clob searchstr, long start) throws SQLException</pre><dl> <dd> Implements the Clob interface method.Determine the character position at which the given substring<p> <dd><dl> <dt> <b>Parameters:</b> <dd> searchstr - is the substring to search for. <dd> start - is the position at which to begin searching. <dt> <b>Returns:</b> <dd> the position at which the substring appears, else -1. </dl></dd></dl><a name="getChars(long, int, char[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getChars"><b>getChars</b></a><pre> public int getChars(long pos, int length, char buffer[]) throws SQLException</pre><dl> <dd> Oracle extension.Return copy of the substring of the CLOB at the requested position.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> buffer - is the buffer into whcih the characters are read. <dd> pos - is the first character of the substring to be extracted. <dd> length - is the number of consecutive character to be copied. <dt> <b>Returns:</b> <dd> the actual number of characters read. </dl></dd></dl><a name="getCharacterOutputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getCharacterOutputStream"><b>getCharacterOutputStream</b></a><pre> public Writer getCharacterOutputStream() throws SQLException</pre><dl> <dd> Oracle extension.Write Unicode stream to the CLOB.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a Unicode character output stream. </dl></dd></dl><a name="getAsciiOutputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getAsciiOutputStream"><b>getAsciiOutputStream</b></a><pre> public OutputStream getAsciiOutputStream() throws SQLException</pre><dl> <dd> Oracle extension.Write ascii stream to the CLOB.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a ascii output stream. </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="putChars(long, char[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="putChars"><b>putChars</b></a><pre> public int putChars(long pos, char chars[]) throws SQLException</pre><dl> <dd> Oracle extension.Write characters at the requested position.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pos - is the position to write characters. <dd> chars - is the buffer of characters to be written. <dt> <b>Returns:</b> <dd> the actual number of characters written. </dl></dd></dl><a name="putString(long, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="putString"><b>putString</b></a><pre> public int putString(long pos, String str) throws SQLException</pre><dl> <dd> Oracle extension.Write Java string at the requested position.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> pos - is the position to write characters. <dd> str - is the Java string to be written. <dt> <b>Returns:</b> <dd> the actual number of characters written. </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.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the size in terms of characters. </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> the size in terms of characters. </dl></dd></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> 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> 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.CHAR.html#_top_">Previous</a> <a href="oracle.sql.CharacterBuffer.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -