Udostępnij za pośrednictwem


IClob.SetAsciiStream(Int64) Method

Definition

Retrieves a stream to be used to write Ascii characters to the CLOB value that this Clob object represents, starting at position pos.

[Android.Runtime.Register("setAsciiStream", "(J)Ljava/io/OutputStream;", "GetSetAsciiStream_JHandler:Java.Sql.IClobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public System.IO.Stream? SetAsciiStream (long pos);
[<Android.Runtime.Register("setAsciiStream", "(J)Ljava/io/OutputStream;", "GetSetAsciiStream_JHandler:Java.Sql.IClobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetAsciiStream : int64 -> System.IO.Stream

Parameters

pos
Int64

the position at which to start writing to this CLOB object; The first position is 1

Returns

the stream to which ASCII encoded characters can be written

Attributes

Exceptions

if an error occurs accessing the Clob.

Remarks

Retrieves a stream to be used to write Ascii characters to the CLOB value that this Clob object represents, starting at position pos. Characters written to the stream will overwrite the existing characters in the Clob object starting at the position pos. If the end of the Clob value is reached while writing characters to the stream, then the length of the Clob value will be increased to accomodate the extra characters.

<b>Note:</b> If the value specified for pos is greater then the length+1 of the CLOB value then the behavior is undefined. Some JDBC drivers may throw a SQLException while other drivers may support this operation.

Added in 1.4.

Java documentation for java.sql.Clob.setAsciiStream(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to