/** * Writes the given Java <code>String</code> to the <code>CLOB</code> * value that this <code>SerialClob</code> object represents, at the position * <code>pos</code>. * * @param pos the position at which to start writing to the <code>CLOB</code> * value that this <code>SerialClob</code> object represents; the first * position is <code>1</code>; must not be less than <code>1</code> nor * greater than the length of this <code>SerialClob</code> object * @param str the string to be written to the <code>CLOB</code> * value that this <code>SerialClob</code> object represents * @return the number of characters written * @throws SerialException if there is an error accessing the * <code>CLOB</code> value; if an invalid position is set; if an * invalid offset value is set; if number of bytes to be written * is greater than the <code>SerialClob</code> length; or the combined * values of the length and offset is greater than the Clob buffer; * if the {@code free} method had been previously called on this object */ public int setString(long pos, String str) throws SerialException { return (setString(pos, str, 0, str.length())); }