/// <summary> /// Retrieves a stream to be used to write ASCII encoded characters to /// the <c>CLOB</c> value that this <c>IClob</c> object represents, /// starting at position <c>pos</c>. /// </summary> /// <param name="pos"> /// The position at which to start writing to this <c>CLOB</c> object /// </param> /// <returns> /// A <see cref="System.IO.Stream"/> to which ASCII encoded characters /// can be written. /// </returns> /// <exception cref="System.Data.Common.DbException"> /// If there is an error accessing the <c>CLOB</c> value. /// </exception> /// <exception cref="HsqlDataSourceException"> /// If there is an error accessing the <c>CLOB</c> value. /// </exception> Stream IClob.SetAsciiStream(long pos) { lock (this) { CheckFree(); try { return(new JavaOutputStreamWrapper( m_clob.setAsciiStream(pos))); } catch (java.sql.SQLException se) { throw new HsqlDataSourceException(se); } catch (java.lang.Exception e) { throw new HsqlDataSourceException(e.toString(), e); } } }