Hitachi

Hitachi Advanced Database Application Development Guide


8.4.12 setAsciiStream(int parameterIndex, InputStream x, int length)

Organization of this subsection

(1) Function

This method sets the value of a specified InputStream object as a dynamic parameter value.

(2) Format

public synchronized void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException

(3) Arguments

int parameterIndex

Specifies the number of a dynamic parameter.

InputStream x

Specifies the java.io.InputStream object that contains the value to be set in the specified dynamic parameter.

int length

Specifies the number of bytes to be set.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases:

(6) Notes

The setAsciiStream method does not execute the close method on x, even after input from x has been completed.