| java.lang.Object org.apache.derby.client.am.Lob org.apache.derby.client.am.Clob
Constructor Summary | |
public | Clob(Agent agent, String string) | public | Clob(Agent agent, byte[] unconvertedBytes, String charsetName, int dataOffset) | public | Clob(Agent agent, java.io.InputStream inputStream, String encoding, int length) | public | Clob(Agent agent, java.io.InputStream inputStream, String encoding) Create a Clob of unknown length with the specified
encoding.
This constructor was added to support the JDBC 4 length less overloads.
Note that a Clob created with this constructor is made for
input to the database only. | public | Clob(Agent agent, java.io.Reader reader, int length) | public | Clob(Agent agent, Reader reader) Create a Clob of unknown length.
This constructor was added to support the JDBC 4 length less overloads.
Note that a Clob created with this constructor is made for
input to the database only. |
Method Summary | |
public void | convertFromAsciiToCharacterStream() | protected Clob | createClobWrapper(java.sql.Clob clob) | protected void | finalize() | public void | free() This method frees the Clob object and releases the resources the resources
that it holds. | public java.io.InputStream | getAsciiStream() | public long | getByteLength() | public java.io.Reader | getCharacterStream() | public Reader | getCharacterStream(long pos, long length) | public String | getString() | public String | getSubString(long pos, int length) Returns a copy of the specified substring
in the CLOB value
designated by this Clob object.
The substring begins at position
pos and has up to length consecutive
characters. | public int | getUTF8Length() | public java.io.InputStream | getUnicodeStream() | public byte[] | getUtf8String() | public boolean | isAsciiStream() | public boolean | isCharacterStream() | public boolean | isString() | public boolean | isUnicodeStream() | public long | length() | public long | position(String searchstr, long start) | public long | position(java.sql.Clob searchstr, long start) | public java.io.OutputStream | setAsciiStream(long pos) | public java.io.Writer | setCharacterStream(long pos) | public int | setString(long pos, String str) | public int | setString(long pos, String str, int offset, int len) | public int | setStringX(long pos, String str, int offset, int len) | public void | truncate(long len) |
lengthInBytes_ | protected long lengthInBytes_(Code) | | |
utf8String_ | protected byte[] utf8String_(Code) | | |
Clob | public Clob(Agent agent, java.io.InputStream inputStream, String encoding) throws SqlException(Code) | | Create a Clob of unknown length with the specified
encoding.
This constructor was added to support the JDBC 4 length less overloads.
Note that a Clob created with this constructor is made for
input to the database only. Do not pass it out to the user!
Parameters: agent - Parameters: inputStream - the data to insert Parameters: encoding - encoding to use for characters. Only "US-ASCII" isallowed. |
Clob | public Clob(Agent agent, Reader reader)(Code) | | Create a Clob of unknown length.
This constructor was added to support the JDBC 4 length less overloads.
Note that a Clob created with this constructor is made for
input to the database only. Do not pass it out to the user!
Parameters: agent - Parameters: reader - the data to insert |
convertFromAsciiToCharacterStream | public void convertFromAsciiToCharacterStream() throws SqlException(Code) | | |
free | public void free() throws SQLException(Code) | | This method frees the Clob object and releases the resources the resources
that it holds. The object is invalid once the free method
is called. If free is called multiple times, the
subsequent calls to free are treated as a no-op.
throws: SQLException - if an error occurs releasingthe Clob's resources |
getByteLength | public long getByteLength() throws SQLException(Code) | | |
getCharacterStream | public Reader getCharacterStream(long pos, long length) throws SQLException(Code) | | |
getSubString | public String getSubString(long pos, int length) throws SQLException(Code) | | Returns a copy of the specified substring
in the CLOB value
designated by this Clob object.
The substring begins at position
pos and has up to length consecutive
characters. The starting position must be between 1 and the length
of the CLOB plus 1. This allows for zero-length CLOB values, from
which only zero-length substrings can be returned.
If a larger length is requested than there are characters available,
characters to the end of the CLOB are returned.
Parameters: pos - the first character of the substring to be extracted.The first character is at position 1. Parameters: length - the number of consecutive characters to be copied a String that is the specified substring inthe CLOB value designated by this Clob object exception: SQLException - if there is an error accessing theCLOB NOTE: If the starting position is the length of the CLOB plus 1,zero characters are returned regardless of the length requested. |
getUtf8String | public byte[] getUtf8String()(Code) | | |
isAsciiStream | public boolean isAsciiStream()(Code) | | |
isCharacterStream | public boolean isCharacterStream()(Code) | | |
isString | public boolean isString()(Code) | | |
isUnicodeStream | public boolean isUnicodeStream()(Code) | | |
length | public long length() throws SQLException(Code) | | |
position | public long position(String searchstr, long start) throws SQLException(Code) | | |
setString | public int setString(long pos, String str) throws SQLException(Code) | | |
setString | public int setString(long pos, String str, int offset, int len) throws SQLException(Code) | | |
truncate | public void truncate(long len) throws SQLException(Code) | | |
|
|