public class JDBCClob
extends java.lang.Object
implements java.sql.Clob
| Constructor and Description |
|---|
JDBCClob(byte[] data,
int offset,
int len,
int ccsid) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getAsciiStream()
This is a ByteArrayInputStream wrapper around String.getBytes("ASCII").
|
java.io.Reader |
getCharacterStream()
This is a StringReader wrapper.
|
java.lang.String |
getSubString(long pos,
int length) |
long |
length() |
long |
position(java.sql.Clob pattern,
long start) |
long |
position(java.lang.String patternString,
long start) |
java.io.OutputStream |
setAsciiStream(long pos) |
java.io.Writer |
setCharacterStream(long pos) |
int |
setString(long pos,
java.lang.String str) |
int |
setString(long pos,
java.lang.String str,
int offset,
int len) |
void |
truncate(long len) |
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 patternString,
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 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 truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLException