MySQL Connector/J size='-1'>5.0.8

com.mysql.jdbc
Class Clob

java.lang.Object
  extended bycom.mysql.jdbc.Clob
All Implemented Interfaces:
java.sql.Clob, com.mysql.jdbc.OutputStreamWatcher, com.mysql.jdbc.WriterWatcher

public class Clob
extends java.lang.Object
implements java.sql.Clob, com.mysql.jdbc.OutputStreamWatcher, com.mysql.jdbc.WriterWatcher

Simplistic implementation of java.sql.Clob for MySQL Connector/J

Version:
$Id: Clob.java 5417 2006-06-20 21:33:56Z mmatthews $
Author:
Mark Matthews

Method Summary
 java.io.InputStream getAsciiStream()
           
 java.io.Reader getCharacterStream()
           
 java.lang.String getSubString(long startPos, int length)
           
 long length()
           
 long position(java.sql.Clob arg0, long arg1)
           
 long position(java.lang.String stringToFind, long startPos)
           
 java.io.OutputStream setAsciiStream(long indexToWriteAt)
           
 java.io.Writer setCharacterStream(long indexToWriteAt)
           
 int setString(long pos, java.lang.String str)
           
 int setString(long pos, java.lang.String str, int offset, int len)
           
 void streamClosed(com.mysql.jdbc.WatchableOutputStream out)
          Called when the OutputStream being watched has .close() called
 void truncate(long length)
           
 void writerClosed(char[] charDataBeingWritten)
           
 void writerClosed(com.mysql.jdbc.WatchableWriter out)
          Called when the Writer being watched has .close() called
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAsciiStream

public java.io.InputStream getAsciiStream()
                                   throws java.sql.SQLException
Specified by:
getAsciiStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.getAsciiStream()

getCharacterStream

public java.io.Reader getCharacterStream()
                                  throws java.sql.SQLException
Specified by:
getCharacterStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.getCharacterStream()

getSubString

public java.lang.String getSubString(long startPos,
                                     int length)
                              throws java.sql.SQLException
Specified by:
getSubString in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.getSubString(long, int)

length

public long length()
            throws java.sql.SQLException
Specified by:
length in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.length()

position

public long position(java.sql.Clob arg0,
                     long arg1)
              throws java.sql.SQLException
Specified by:
position in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.position(Clob, long)

position

public long position(java.lang.String stringToFind,
                     long startPos)
              throws java.sql.SQLException
Specified by:
position in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.position(String, long)

setAsciiStream

public java.io.OutputStream setAsciiStream(long indexToWriteAt)
                                    throws java.sql.SQLException
Specified by:
setAsciiStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.setAsciiStream(long)

setCharacterStream

public java.io.Writer setCharacterStream(long indexToWriteAt)
                                  throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.setCharacterStream(long)

setString

public int setString(long pos,
                     java.lang.String str)
              throws java.sql.SQLException
Specified by:
setString in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.setString(long, String)

setString

public int setString(long pos,
                     java.lang.String str,
                     int offset,
                     int len)
              throws java.sql.SQLException
Specified by:
setString in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.setString(long, String, int, int)

streamClosed

public void streamClosed(com.mysql.jdbc.WatchableOutputStream out)
Description copied from interface: com.mysql.jdbc.OutputStreamWatcher
Called when the OutputStream being watched has .close() called

Specified by:
streamClosed in interface com.mysql.jdbc.OutputStreamWatcher
See Also:
com.mysql.jdbc.OutputStreamWatcher#streamClosed(byte[])

truncate

public void truncate(long length)
              throws java.sql.SQLException
Specified by:
truncate in interface java.sql.Clob
Throws:
java.sql.SQLException
See Also:
Clob.truncate(long)

writerClosed

public void writerClosed(char[] charDataBeingWritten)
See Also:
com.mysql.jdbc.WriterWatcher#writerClosed(char[])

writerClosed

public void writerClosed(com.mysql.jdbc.WatchableWriter out)
Description copied from interface: com.mysql.jdbc.WriterWatcher
Called when the Writer being watched has .close() called

Specified by:
writerClosed in interface com.mysql.jdbc.WriterWatcher
See Also:
com.mysql.jdbc.WriterWatcher#writerClosed(char[])

MySQL Connector/J size='-1'>5.0.8