public class ClobImpl
extends java.lang.Object
implements java.sql.Clob
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
java.io.InputStream |
getAsciiStream()
Returns the clob as a stream.
|
java.io.Reader |
getCharacterStream()
Returns a subset of the bytes.
|
java.io.Reader |
getCharacterStream(long pos,
long length) |
java.lang.String |
getSubString(long pos,
int length)
Returns a copy of the specified substring.
|
long |
length()
Returns the length of the clob
|
long |
position(java.sql.Clob pattern,
long start)
Returns the position in the clob where the pattern starts.
|
long |
position(java.lang.String pattern,
long start)
Returns the position in the clob where the pattern starts.
|
java.io.OutputStream |
setAsciiStream(long pos)
Returns a stream to write to the clob.
|
java.io.Writer |
setCharacterStream(long pos)
Returns a stream to write to the clob.
|
int |
setString(long pos,
java.lang.String string)
Sets a subset of bytes.
|
int |
setString(long pos,
java.lang.String string,
int offset,
int len)
Sets a subset of bytes.
|
java.lang.String |
toString() |
void |
truncate(long length)
Truncates the clob
|
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 pos,
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 pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Clobjava.sql.SQLExceptionpublic long position(java.lang.String pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
setAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Writer setCharacterStream(long pos)
throws java.sql.SQLException
setCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long pos,
java.lang.String string)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long pos,
java.lang.String string,
int offset,
int len)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic void truncate(long length)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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