code: public static boolean isHdfsUri(String uriStr)
      {
          return isHdfsUri(URI.create(PERCENT.matcher(uriStr).replaceAll("")));
      }
docs: Convenient method to check if the given URI string is a WebHDFS URL.
  See {@link #isHdfsUri(java.net.URI)} for more.