Share via


IRowSet.SetAsciiStream Method

Definition

Overloads

SetAsciiStream(Int32, Stream)

Sets the designated parameter in this RowSet object's command to the given input stream.

SetAsciiStream(String, Stream)

Sets the designated parameter to the given input stream.

SetAsciiStream(Int32, Stream, Int32)

Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value.

SetAsciiStream(String, Stream, Int32)

Sets the designated parameter to the given input stream, which will have the specified number of bytes.

SetAsciiStream(Int32, Stream)

Sets the designated parameter in this RowSet object's command to the given input stream.

[Android.Runtime.Register("setAsciiStream", "(ILjava/io/InputStream;)V", "GetSetAsciiStream_ILjava_io_InputStream_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetAsciiStream (int parameterIndex, System.IO.Stream? x);
[<Android.Runtime.Register("setAsciiStream", "(ILjava/io/InputStream;)V", "GetSetAsciiStream_ILjava_io_InputStream_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetAsciiStream : int * System.IO.Stream -> unit

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, ...

x
Stream

the Java input stream that contains the ASCII parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command to the given input stream. When a very large ASCII value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

<B>Note:</B> Consult your JDBC driver documentation to determine if it might be more efficient to use a version of setAsciiStream which takes a length parameter.

Added in 1.6.

Java documentation for javax.sql.RowSet.setAsciiStream(int, java.io.InputStream).

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

SetAsciiStream(String, Stream)

Sets the designated parameter to the given input stream.

[Android.Runtime.Register("setAsciiStream", "(Ljava/lang/String;Ljava/io/InputStream;)V", "GetSetAsciiStream_Ljava_lang_String_Ljava_io_InputStream_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetAsciiStream (string? parameterName, System.IO.Stream? x);
[<Android.Runtime.Register("setAsciiStream", "(Ljava/lang/String;Ljava/io/InputStream;)V", "GetSetAsciiStream_Ljava_lang_String_Ljava_io_InputStream_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetAsciiStream : string * System.IO.Stream -> unit

Parameters

parameterName
String

the name of the parameter

x
Stream

the Java input stream that contains the ASCII parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given input stream. When a very large ASCII value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

<B>Note:</B> Consult your JDBC driver documentation to determine if it might be more efficient to use a version of setAsciiStream which takes a length parameter.

Added in 1.6.

Java documentation for javax.sql.RowSet.setAsciiStream(java.lang.String, java.io.InputStream).

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

SetAsciiStream(Int32, Stream, Int32)

Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value.

[Android.Runtime.Register("setAsciiStream", "(ILjava/io/InputStream;I)V", "GetSetAsciiStream_ILjava_io_InputStream_IHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetAsciiStream (int parameterIndex, System.IO.Stream? x, int length);
[<Android.Runtime.Register("setAsciiStream", "(ILjava/io/InputStream;I)V", "GetSetAsciiStream_ILjava_io_InputStream_IHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetAsciiStream : int * System.IO.Stream * int -> unit

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, ...

x
Stream

the Java input stream that contains the ASCII parameter value

length
Int32

the number of bytes in the stream

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value. It may be more practical to send a very large ASCII value via a java.io.InputStream rather than as a LONGVARCHAR parameter. The driver will read the data from the stream as needed until it reaches end-of-file.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Java documentation for javax.sql.RowSet.setAsciiStream(int, java.io.InputStream, int).

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

SetAsciiStream(String, Stream, Int32)

Sets the designated parameter to the given input stream, which will have the specified number of bytes.

[Android.Runtime.Register("setAsciiStream", "(Ljava/lang/String;Ljava/io/InputStream;I)V", "GetSetAsciiStream_Ljava_lang_String_Ljava_io_InputStream_IHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetAsciiStream (string? parameterName, System.IO.Stream? x, int length);
[<Android.Runtime.Register("setAsciiStream", "(Ljava/lang/String;Ljava/io/InputStream;I)V", "GetSetAsciiStream_Ljava_lang_String_Ljava_io_InputStream_IHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetAsciiStream : string * System.IO.Stream * int -> unit

Parameters

parameterName
String

the name of the parameter

x
Stream

the Java input stream that contains the ASCII parameter value

length
Int32

the number of bytes in the stream

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large ASCII value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Added in 1.4.

Java documentation for javax.sql.RowSet.setAsciiStream(java.lang.String, java.io.InputStream, int).

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