Clob adapter that exposes a given String or character stream.
Optionally used by DefaultLobHandler.
| Modifier and Type | Field and Description |
|---|---|
| private InputStream | |
| private Reader | |
| private String | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public InputStream | getAsciiStream()
Implements java. Retrieves the |
| public Reader | getCharacterStream()
Implements java. Retrieves the |
| public Reader | getCharacterStream(long
the offset to the first character of the partial value to
be retrieved. The first character in the Clob is at position 1. pos, long the length in characters of the partial value to be retrieved. length)Implements java. Returns a |
| public String | getSubString(long
the first character of the substring to be extracted.
The first character is at position 1. pos, int the number of consecutive characters to be copied;
the value for length must be 0 or greater length)Implements java. Retrieves a copy of the specified substring
in the |
| public long | length()
Implements java. Retrieves the number of characters
in the |
| public long | position(String
the substring for which to search searchstr, long the position at which to begin searching;
the first position is 1 start)Implements java. Retrieves the character position at which the specified substring
|
| public long | position(Clob
the searchstr, long Clob object for which to searchthe position at which to begin searching; the first
position is 1 start)Implements java. Retrieves the character position at which the specified
|
| public OutputStream | setAsciiStream(long
the position at which to start writing to this
pos)CLOB object; The first position is 1Implements java. Retrieves a stream to be used to write Ascii characters to the
|
| public Writer | setCharacterStream(long
the position at which to start writing to the
pos)CLOB value; The first position is 1Implements java. Retrieves a stream to be used to write a stream of Unicode characters
to the |
| public int | setString(long
the position at which to start writing to the pos, String CLOB
value that this Clob object represents;
the first position is 1.the string to be written to the str)CLOB
value that this Clob designatesImplements java. Writes the given Java |
| public int | setString(long
the position at which to start writing to this
pos, String CLOB object; The first position is 1the string to be written to the str, int CLOB
value that this Clob object representsthe offset into offset, int str to start reading
the characters to be writtenthe number of characters to be written len)Implements java. Writes |
| public void | truncate(long
the length, in characters, to which the len)CLOB value
should be truncatedImplements java. Truncates the |
| asciiStream | back to summary |
|---|---|
| private InputStream asciiStream
| |
| characterStream | back to summary |
|---|---|
| private Reader characterStream
| |
| content | back to summary |
|---|---|
| private String content
| |
| contentLength | back to summary |
|---|---|
| private final long contentLength | |
| PassThroughClob | back to summary |
|---|---|
| public PassThroughClob(String content) | |
| PassThroughClob | back to summary |
|---|---|
| public PassThroughClob(Reader characterStream, long contentLength) | |
| PassThroughClob | back to summary |
|---|---|
| public PassThroughClob(InputStream asciiStream, long contentLength) | |
| free | back to summary |
|---|---|
| public void free() throws SQLException Implements java. Doc from java. This method releases the resources that the
After
| |
| getAsciiStream | back to summary |
|---|---|
| public InputStream getAsciiStream() throws SQLException Implements java. Doc from java. Retrieves the
| |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream() throws SQLException Implements java. Doc from java. Retrieves the
| |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream(long pos, long length) throws SQLException Implements java. Doc from java. Returns a
| |
| getSubString | back to summary |
|---|---|
| public String getSubString(long pos, int length) throws SQLException Implements java. Doc from java. Retrieves a copy of the specified substring
in the
| |
| length | back to summary |
|---|---|
| public long length() throws SQLException Implements java. Doc from java. Retrieves the number of characters
in the
| |
| position | back to summary |
|---|---|
| public long position(String searchstr, long start) throws SQLException Implements java. Doc from java. Retrieves the character position at which the specified substring
| |
| position | back to summary |
|---|---|
| public long position(Clob searchstr, long start) throws SQLException Implements java. Doc from java. Retrieves the character position at which the specified
| |
| setAsciiStream | back to summary |
|---|---|
| public OutputStream setAsciiStream(long pos) throws SQLException Implements java. Doc from java. Retrieves a stream to be used to write Ascii characters to the
Note If the value specified for
| |
| setCharacterStream | back to summary |
|---|---|
| public Writer setCharacterStream(long pos) throws SQLException Implements java. Doc from java. Retrieves a stream to be used to write a stream of Unicode characters
to the Note If the value specified for
| |
| setString | back to summary |
|---|---|
| public int setString(long pos, String str) throws SQLException Implements java. Doc from java. Writes the given Java Note If the value specified for
| |
| setString | back to summary |
|---|---|
| public int setString(long pos, String str, int offset, int len) throws SQLException Implements java. Doc from java. Writes Note If the value specified for
| |
| truncate | back to summary |
|---|---|
| public void truncate(long len) throws SQLException Implements java. Doc from java. Truncates the Note If the value specified for
| |