java.sql
Interface Clob
java.lang.Object
|
+--java.sql.Clob
public interface Clob
This interface contains methods for accessing a SQL CLOB (Character
Large OBject) type.
Author:- Aaron M. Renn (arenn@urbanophile.com)
getAsciiStream
public InputStream getAsciiStream() This method returns a byte stream that reads the contents of the
CLOB as a series of ASCII bytes.
Since:Returns:
- A stream to read the CLOB's contents.
Throws:
getCharacterStream
public Reader getCharacterStream() This method returns a character stream that reads the contents of the
CLOB.
Since:Returns:
- A character stream to read the CLOB's contents.
Throws:
getSubString
public String getSubString(long pos, int length) This method returns the specified portion of the CLOB as a
String.
Since:Parameters:
Returns:
- The requested CLOB section, as a
String.
Throws:
length
public long length() This method returns the number of characters in the CLOB.
Since:Returns:
- The number of characters in the CLOB.
Throws:
position
public long position(java.lang.String searchstr, long start) This method returns the index into the CLOB of the first occurrence of
the specified character pattern (supplied by the caller as a
String). The search begins at the specified index.
Since:Parameters:
Returns:
- The index at which the pattern was found (indexes start at 1),
or -1 if the pattern was not found.
Throws:
position
public long position(java.sql.Clob searchstr, long start) This method returns the index into the CLOB of the first occurrence of
the specified character pattern (supplied by the caller as a
Clob). The search begins at the specified index.
Since:Parameters:
Returns:
- The index at which the pattern was found (indexes start at 1),
or -1 if the pattern was not found.
Throws:
setAsciiStream
public OutputStream setAsciiStream(long pos)Since:Parameters:
setCharacterStream
public Writer setCharacterStream(long pos)Since:Parameters:
setString
public int setString(long pos, java.lang.String str)Since:Parameters:
setString
public int setString(long pos, java.lang.String str, int offset, int len)Since:Parameters:
truncate
public void truncate(long len)Since:Parameters: