code: public OutputStream setBinaryStream(final long pos) throws SQLException {
          synchronized (this) {
              if (this.underlying == null) {
                  if (pos > 1) {
                      throw new SQLException("Invalid position: " + pos);
                  } // end of if
  
                  throw new SQLFeatureNotSupportedException("Cannot write to empty BLOB");
              } // end of if
  
              // ---
  
              return this.underlying.setBinaryStream(pos);
          } // end of sync
      }
docs: {@inheritDoc}
  @throw SQLFeatureNotSupportedException if this BLOB is empty