code: public void setRawQuery(char[] escapedQuery) throws URIException {
          if (escapedQuery == null || escapedQuery.length == 0) {
              _query = escapedQuery;
              setURI();
              return;
          }
          // remove the fragment identifier
          escapedQuery = removeFragmentIdentifier(escapedQuery);
          if (!validate(escapedQuery, query)) {
              throw new URIException(URIException.ESCAPING,
                      "escaped query not valid");
          }
          _query = escapedQuery;
          setURI();
      }
docs: Set the raw-escaped query.
  
  @param escapedQuery the raw-escaped query
  @throws URIException escaped query not valid