| java.lang.Object net.sourceforge.jtds.jdbc.ClobImpl
ClobImpl | public class ClobImpl implements Clob(Code) | | An in-memory or disk based representation of character data.
Implementation note:
- This implementation stores the CLOB data in a byte array managed by
the
BlobBuffer class. Each character is stored in 2
sequential bytes using UTF-16LE encoding.
- As a consequence of using UTF-16LE, Unicode 3.1 supplementary
characters may require an additional 2 bytes of storage. This
implementation assumes that character position parameters supplied to
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.
- For the same reasons although the position method will return the
correct start position for any given pattern in the array, the returned
value may be different to that expected if supplementary characters
exist in the text preceding the pattern.
author: Brian Heineman author: Mike Hutchinson version: $Id: ClobImpl.java,v 1.36 2007/07/08 21:38:13 bheineman Exp $ |
ClobImpl | ClobImpl(ConnectionJDBC2 connection)(Code) | | Constructs a new empty Clob instance.
Parameters: connection - a reference to the parent connection object |
ClobImpl | ClobImpl(ConnectionJDBC2 connection, String str)(Code) | | Constructs a new initialized Clob instance.
Parameters: connection - a reference to the parent connection object Parameters: str - the String object to encapsulate |
getBlobBuffer | BlobBuffer getBlobBuffer()(Code) | | Obtain this object's backing BlobBuffer object.
the underlying BlobBuffer |
|
|