|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.root.db.lob.DefaultClob
public class DefaultClob
A default implementation of java.sql.Clob.
Constructor Summary | |
---|---|
DefaultClob()
Constructs an empty CLOB. |
|
DefaultClob(File file,
boolean... options)
Constructs a file CLOB. |
|
DefaultClob(File file,
String charset,
boolean... options)
Constructs a file CLOB with an encoding. |
|
DefaultClob(Reader rdr)
Constructs a reader CLOB. |
|
DefaultClob(String str)
Constructs a string CLOB. |
|
DefaultClob(URL url,
boolean... options)
Constructs an URL CLOB. |
|
DefaultClob(URL url,
String charset,
boolean... options)
Constructs an URL CLOB with an encoding. |
Method Summary | |
---|---|
void |
free()
|
InputStream |
getAsciiStream()
|
Reader |
getCharacterStream()
|
Reader |
getCharacterStream(long pos,
long length)
|
String |
getSubString(long pos,
int length)
|
long |
length()
|
long |
position(Clob searchstr,
long start)
|
long |
position(String searchstr,
long start)
|
void |
readExternal(ObjectInput in)
|
OutputStream |
setAsciiStream(long pos)
|
Writer |
setCharacterStream(long pos)
|
int |
setString(long pos,
String str)
|
int |
setString(long pos,
String str,
int offset,
int len)
|
void |
truncate(long len)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClob()
public DefaultClob(String str)
str
- the string.public DefaultClob(Reader rdr)
rdr
- the reader.public DefaultClob(URL url, boolean... options)
url
- the input URL.options
- stream options.public DefaultClob(URL url, String charset, boolean... options)
url
- the input URL.charset
- the encoding.options
- stream options.public DefaultClob(File file, boolean... options)
file
- the input file.options
- stream options.public DefaultClob(File file, String charset, boolean... options)
file
- the input file.charset
- the encoding.options
- stream options.Method Detail |
---|
public InputStream getAsciiStream() throws SQLException
getAsciiStream
in interface Clob
SQLException
public OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream
in interface Clob
SQLException
public Reader getCharacterStream() throws SQLException
getCharacterStream
in interface Clob
SQLException
public Writer setCharacterStream(long pos) throws SQLException
setCharacterStream
in interface Clob
SQLException
public Reader getCharacterStream(long pos, long length) throws SQLException
getCharacterStream
in interface Clob
SQLException
public String getSubString(long pos, int length) throws SQLException
getSubString
in interface Clob
SQLException
public int setString(long pos, String str) throws SQLException
setString
in interface Clob
SQLException
public int setString(long pos, String str, int offset, int len) throws SQLException
setString
in interface Clob
SQLException
public long length() throws SQLException
length
in interface Clob
SQLException
public long position(String searchstr, long start) throws SQLException
position
in interface Clob
SQLException
public long position(Clob searchstr, long start) throws SQLException
position
in interface Clob
SQLException
public void truncate(long len) throws SQLException
truncate
in interface Clob
SQLException
public void free()
free
in interface Clob
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |