类 Clob
- java.lang.Object
-
- com.mysql.cj.jdbc.Clob
-
- 所有已实现的接口:
OutputStreamWatcher,WriterWatcher,Clob
- 直接已知子类:
NClob
public class Clob extends Object implements Clob, OutputStreamWatcher, WriterWatcher
Simplistic implementation of java.sql.Clob for MySQL Connector/J
-
-
构造器概要
构造器 构造器 说明 Clob(String charDataInit, ExceptionInterceptor exceptionInterceptor)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidfree()InputStreamgetAsciiStream()ReadergetCharacterStream()ReadergetCharacterStream(long pos, long length)StringgetSubString(long startPos, int length)longlength()longposition(String stringToFind, long startPos)longposition(Clob arg0, long arg1)OutputStreamsetAsciiStream(long indexToWriteAt)WritersetCharacterStream(long indexToWriteAt)intsetString(long pos, String str)intsetString(long pos, String str, int offset, int len)voidstreamClosed(WatchableStream out)Called when the OutputStream being watched has .close() calledvoidtruncate(long length)voidwriterClosed(char[] charDataBeingWritten)voidwriterClosed(WatchableWriter out)Called when the Writer being watched has .close() called
-
-
-
构造器详细资料
-
Clob
public Clob(String charDataInit, ExceptionInterceptor exceptionInterceptor)
-
-
方法详细资料
-
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- 指定者:
getAsciiStream在接口中Clob- 抛出:
SQLException
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- 指定者:
getCharacterStream在接口中Clob- 抛出:
SQLException
-
getSubString
public String getSubString(long startPos, int length) throws SQLException
- 指定者:
getSubString在接口中Clob- 抛出:
SQLException
-
length
public long length() throws SQLException- 指定者:
length在接口中Clob- 抛出:
SQLException
-
position
public long position(Clob arg0, long arg1) throws SQLException
- 指定者:
position在接口中Clob- 抛出:
SQLException
-
position
public long position(String stringToFind, long startPos) throws SQLException
- 指定者:
position在接口中Clob- 抛出:
SQLException
-
setAsciiStream
public OutputStream setAsciiStream(long indexToWriteAt) throws SQLException
- 指定者:
setAsciiStream在接口中Clob- 抛出:
SQLException
-
setCharacterStream
public Writer setCharacterStream(long indexToWriteAt) throws SQLException
- 指定者:
setCharacterStream在接口中Clob- 抛出:
SQLException
-
setString
public int setString(long pos, String str) throws SQLException- 指定者:
setString在接口中Clob- 抛出:
SQLException
-
setString
public int setString(long pos, String str, int offset, int len) throws SQLException- 指定者:
setString在接口中Clob- 抛出:
SQLException
-
streamClosed
public void streamClosed(WatchableStream out)
从接口复制的说明:OutputStreamWatcherCalled when the OutputStream being watched has .close() called- 指定者:
streamClosed在接口中OutputStreamWatcher- 参数:
out-WatchableStream
-
truncate
public void truncate(long length) throws SQLException- 指定者:
truncate在接口中Clob- 抛出:
SQLException
-
writerClosed
public void writerClosed(char[] charDataBeingWritten)
-
writerClosed
public void writerClosed(WatchableWriter out)
从接口复制的说明:WriterWatcherCalled when the Writer being watched has .close() called- 指定者:
writerClosed在接口中WriterWatcher- 参数:
out- WatchableWriter instance
-
free
public void free() throws SQLException- 指定者:
free在接口中Clob- 抛出:
SQLException
-
getCharacterStream
public Reader getCharacterStream(long pos, long length) throws SQLException
- 指定者:
getCharacterStream在接口中Clob- 抛出:
SQLException
-
-