/** @deprecated */
 public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length)
     throws SQLException {
   checkOpen();
   try {
     _stmt.setUnicodeStream(parameterIndex, x, length);
   } catch (SQLException e) {
     handleException(e);
   }
 }
  public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
    Profiler profiler = _profilerPoint.start();

    try {
      _preparedStatement.setUnicodeStream(parameterIndex, x, length);
    } finally {
      profiler.finish();
    }
  }
 /** @deprecated */
 public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
   String methodCall = "setUnicodeStream(" + parameterIndex + ", " + x + ", " + length + ")";
   argTraceSet(
       parameterIndex, "(Unicode InputStream)", "<Unicode InputStream of length " + length + ">");
   try {
     realPreparedStatement.setUnicodeStream(parameterIndex, x, length);
   } catch (SQLException s) {
     reportException(methodCall, s);
     throw s;
   }
   reportReturn(methodCall);
 }
 @Deprecated
 public void setUnicodeStream(int idx, InputStream is, int length) throws SQLException {
   try {
     is = markableInputStream(is, length);
     addMementoEntry(
         "setUnicodeStream", new Class[] {InputStream.class, Integer.TYPE}, idx, is, length);
     wrapped.setUnicodeStream(idx, is, length);
     resetInputStream(is);
   } catch (SQLException e) {
     throw new UcanaccessSQLException(e);
   }
 }
 @SuppressWarnings("deprecation")
 @Override
 public void setParameter(final PreparedStatement pstmt, final int index) throws SQLException {
   final ByteArrayInputStream bais = new ByteArrayInputStream(value);
   switch (type) {
     case TYPE_ASCII:
       pstmt.setAsciiStream(index, bais, length);
       break;
     case TYPE_UNICODE:
       // its ok to downcast here as there is no setUnicodeStream()
       // variant with a long length value
       pstmt.setUnicodeStream(index, bais, (int) length);
       break;
     case TYPE_BINARY:
       pstmt.setBinaryStream(index, bais, length);
       break;
   }
 }
 @SuppressWarnings("deprecation")
 public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
   delegate.setUnicodeStream(parameterIndex, x, length);
 }
 @Override
 @Deprecated
 public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
   stmt.setUnicodeStream(parameterIndex, x, length);
   logValue(parameterIndex, x == null ? null : "<UnicodeStream>");
 }