public class Clob extends java.lang.Object implements java.sql.Clob, OutputStreamWatcher, WriterWatcher
| Constructor and Description |
|---|
Clob(java.lang.String charDataInit,
ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
java.io.InputStream |
getAsciiStream() |
java.io.Reader |
getCharacterStream() |
java.io.Reader |
getCharacterStream(long pos,
long length) |
java.lang.String |
getSubString(long startPos,
int length) |
long |
length() |
long |
position(java.sql.Clob arg0,
long arg1) |
long |
position(java.lang.String stringToFind,
long startPos) |
java.io.OutputStream |
setAsciiStream(long indexToWriteAt) |
java.io.Writer |
setCharacterStream(long indexToWriteAt) |
int |
setString(long pos,
java.lang.String str) |
int |
setString(long pos,
java.lang.String str,
int offset,
int len) |
void |
streamClosed(WatchableStream out)
Called when the OutputStream being watched has .close() called
|
void |
truncate(long length) |
void |
writerClosed(char[] charDataBeingWritten) |
void |
writerClosed(WatchableWriter out)
Called when the Writer being watched has .close() called
|
public Clob(java.lang.String charDataInit,
ExceptionInterceptor exceptionInterceptor)
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
getAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.lang.String getSubString(long startPos,
int length)
throws java.sql.SQLException
getSubString in interface java.sql.Clobjava.sql.SQLExceptionpublic long length()
throws java.sql.SQLException
length in interface java.sql.Clobjava.sql.SQLExceptionpublic long position(java.sql.Clob arg0,
long arg1)
throws java.sql.SQLException
position in interface java.sql.Clobjava.sql.SQLExceptionpublic long position(java.lang.String stringToFind,
long startPos)
throws java.sql.SQLException
position in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.OutputStream setAsciiStream(long indexToWriteAt)
throws java.sql.SQLException
setAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Writer setCharacterStream(long indexToWriteAt)
throws java.sql.SQLException
setCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long pos,
java.lang.String str,
int offset,
int len)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic void streamClosed(WatchableStream out)
OutputStreamWatcherstreamClosed in interface OutputStreamWatcherout - WatchableStreampublic void truncate(long length)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLExceptionpublic void writerClosed(char[] charDataBeingWritten)
public void writerClosed(WatchableWriter out)
WriterWatcherwriterClosed in interface WriterWatcherout - WatchableWriter instancepublic void free()
throws java.sql.SQLException
free in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream(long pos,
long length)
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobjava.sql.SQLException