Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
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:

Method Summary

java.io.InputStreamgetAsciiStream()

This method returns a byte stream that reads the contents of the CLOB as a series of ASCII bytes.
java.io.ReadergetCharacterStream()

This method returns a character stream that reads the contents of the CLOB.
java.lang.StringgetSubString(long pos, int length)

This method returns the specified portion of the CLOB as a String.
longlength()

This method returns the number of characters in the CLOB.
longposition(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).
longposition(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).
java.io.OutputStreamsetAsciiStream(long pos)

java.io.WritersetCharacterStream(long pos)

intsetString(long pos, java.lang.String str)

intsetString(long pos, java.lang.String str, int offset, int len)

voidtruncate(long len)

Method Details

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:

Throws:


getCharacterStream

public Reader getCharacterStream()

This method returns a character stream that reads the contents of the CLOB.

Since:Returns:

Throws:


getSubString

public String getSubString(long pos, int length)

This method returns the specified portion of the CLOB as a String.

Since:Parameters:

Returns:

Throws:


length

public long length()

This method returns the number of characters in the CLOB.

Since:Returns:

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:

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:

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: