code: public long position(final byte[] pattern, final long start)
          throws SQLException {
  
          synchronized (this) {
              if (this.underlying == null) {
                  if (start > 1) {
                      throw new SQLException("Invalid offset: " + start);
                  } // end of if
  
                  return -1L;
              } // end of if
  
              return this.underlying.position(pattern, start);
          } // end of sync
      }
docs: {@inheritDoc}