          scheme = &quot;file&quot;;
          if (hostStart &lt;= start) {
            &#47;&#47; File URIs should have an authority.
            &#47;&#47; Paths after an authority should be absolute.
            String schemeAuth = &quot;file:&#47;&#47;&quot;;
            int delta = 2;
            if (!uri.startsWith(&quot;&#47;&quot;, pathStart)) {
              schemeAuth = &quot;file:&#47;&#47;&#47;&quot;;
              delta = 3;
            }
            uri = schemeAuth + uri.substring(pathStart, 