|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jtds.jdbc.ClobImpl
An in-memory or disk based representation of character data.
Implementation note:BlobBuffer
class. Each character is stored in 2
sequential bytes using UTF-16LE encoding.
getSubstring
, position
and the
set
methods refer to 16 bit characters only. The presence
of supplementary characters will cause the wrong characters to be
accessed.
Field Summary | |
private BlobBuffer |
blobBuffer
The underlying BlobBuffer . |
private static java.lang.String |
EMPTY_CLOB
0 length String as initial value for empty
Clob s. |
Constructor Summary | |
(package private) |
ClobImpl(ConnectionJDBC2 connection)
Constructs a new empty Clob instance. |
(package private) |
ClobImpl(ConnectionJDBC2 connection,
java.lang.String str)
Constructs a new initialized Clob instance. |
Method Summary | |
java.io.InputStream |
getAsciiStream()
|
(package private) BlobBuffer |
getBlobBuffer()
Obtain this object's backing BlobBuffer object. |
java.io.Reader |
getCharacterStream()
|
java.lang.String |
getSubString(long pos,
int length)
|
long |
length()
|
long |
position(java.sql.Clob searchStr,
long start)
|
long |
position(java.lang.String searchStr,
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String EMPTY_CLOB
String
as initial value for empty
Clob
s.
private final BlobBuffer blobBuffer
BlobBuffer
.
Constructor Detail |
ClobImpl(ConnectionJDBC2 connection)
Clob
instance.
connection
- a reference to the parent connection objectClobImpl(ConnectionJDBC2 connection, java.lang.String str)
Clob
instance.
connection
- a reference to the parent connection objectstr
- the String
object to encapsulateMethod Detail |
BlobBuffer getBlobBuffer()
BlobBuffer
object.
BlobBuffer
public java.io.InputStream getAsciiStream() throws java.sql.SQLException
getAsciiStream
in interface java.sql.Clob
java.sql.SQLException
public java.io.Reader getCharacterStream() throws java.sql.SQLException
getCharacterStream
in interface java.sql.Clob
java.sql.SQLException
public java.lang.String getSubString(long pos, int length) throws java.sql.SQLException
getSubString
in interface java.sql.Clob
java.sql.SQLException
public long length() throws java.sql.SQLException
length
in interface java.sql.Clob
java.sql.SQLException
public long position(java.lang.String searchStr, long start) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
public long position(java.sql.Clob searchStr, long start) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException
setAsciiStream
in interface java.sql.Clob
java.sql.SQLException
public java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException
setCharacterStream
in interface java.sql.Clob
java.sql.SQLException
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
public int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Clob
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |