Skip to content

适用虚谷数据库版本

v12.9



适用虚谷数据库版本

v12.9


java.sql.Clob

📄字数 862
👁️阅读量 加载中...

java.sql.Clob 已实现的接口

返回类型方法描述
voidfree()该方法可以释放 Clob对象并释放资源所拥有的资源。
InputStreamgetAsciiStream()将此 Clob对象指定的 CLOB值作为ascii流 Clob 。
ReadergetCharacterStream()将此 Clob对象指定的 CLOB值作为 java.io.Reader对象(或作为字符流)检索。
ReadergetCharacterStream(long pos, long length)返回包含部分 Clob值的 Reader对象,以pos指定的字符开头,长度为长度字符。
StringgetSubString(long pos, int length)在此 Clob对象指定的 CLOB值中检索指定子字符串的副本。
longlength()检索由 Clob对象指定的 CLOB值中的 CLOB数。
longposition(Clob searchstr, long start)在检索该指定的字符位置 Clob对象 searchstr出现在此 Clob对象。
longposition(String searchstr, long start)检索由此 Clob对象表示的SQL CLOB中指定的子字符串 searchstr出现的字符位置。
OutputStreamsetAsciiStream(long pos)检索用于将Ascii字符写入到 Clob对象表示的 CLOB值的流,从位置 pos开始。
WritersetCharacterStream(long pos)检索用于将Unicode字符流写入此 Clob对象表示的 CLOB值的流,位置 pos 。
intsetString(long pos, String str)将给定的Java String写入该 Clob对象在位置 pos指定的 CLOB值。
intsetString(long pos, String str, int offset, int len)写入 len字符的 str ,从字符 offset开始,到这个 Clob代表的 CLOB值。
voidtruncate(long len)截断 CLOB这个 Clob指定的长度为 len字符的值。