docs: public InputStream getInputStream() throws IOException {
          URLConnection con = url.openConnection();
          useCachesIfNecessary(con);
          try {
              return con.getInputStream();
          } catch (IOException ex) {
              // Close the HTTP connection (if applicable).
              if (con instanceof HttpURLConnection) {
                  ((HttpURLConnection) con).disconnect();
              }
              throw ex;
          }
      }