public abstract void setNCharacterStream (int parameterIndex, Reader value, long length) throws SQLException

Sets the designated parameter to a Reader object. The Reader reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database.

Parameters:
parameterIndex    of the first parameter is 1, the second is 2, ...
value    the parameter value
length    the number of characters in the parameter data.

Exceptions:
SQLException    if parameterIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatement
SQLFeatureNotSupportedException    if the JDBC driver does not support this method

Since:  1.6