All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.AS400JDBCClob

java.lang.Object
   |
   +----com.ibm.as400.access.AS400JDBCClob

public class AS400JDBCClob
extends Object
implements Clob
The AS400JDBCClob class provides access to character large objects. The data is valid only within the current transaction.


Method Index

 o getAsciiStream()
Returns the entire clob as a stream of ASCII characters.
 o getCharacterStream()
Returns the entire clob as a character stream.
 o getSubString(long, int)
Returns part of the contents of the clob.
 o length()
Returns the length of the clob.
 o position(Clob, long)
Returns the position at which a pattern is found in the clob.
 o position(String, long)
Returns the position at which a pattern is found in the clob.

Methods

 o getAsciiStream
 public InputStream getAsciiStream() throws SQLException
Returns the entire clob as a stream of ASCII characters.

Returns:
The stream.
Throws: SQLException
If an error occurs.
 o getCharacterStream
 public Reader getCharacterStream() throws SQLException
Returns the entire clob as a character stream.

Returns:
The stream.
Throws: SQLException
If an error occurs.
 o getSubString
 public String getSubString(long start,
                            int length) throws SQLException
Returns part of the contents of the clob.

Parameters:
start - The start position within the clob (0-based).
length - The length to return.
Returns:
The contents.
Throws: SQLException
If the start position is not valid, if the length is not valid, or an error occurs.
 o length
 public long length() throws SQLException
Returns the length of the clob.

Returns:
The length of the clob, in characters.
Throws: SQLException
If an error occurs.
 o position
 public long position(String pattern,
                      long start) throws SQLException
Returns the position at which a pattern is found in the clob.

Parameters:
pattern - The pattern.
start - The position within the clob to begin searching (0-based).
Returns:
The position at which the pattern is found, or -1 if the pattern is not found.
Throws: SQLException
If the pattern is null, the position is not valid, or an error occurs.
 o position
 public long position(Clob pattern,
                      long start) throws SQLException
Returns the position at which a pattern is found in the clob.

Parameters:
pattern - The pattern.
start - The position within the clob to begin searching (0-based).
Returns:
The position at which the pattern is found, or -1 if the pattern is not found.
Throws: SQLException
If the pattern is null, the position is not valid, or an error occurs.

All Packages  Class Hierarchy  This Package  Previous  Next  Index