code: public static ResourceInfo extractInfo(URL url) throws IOException
    {
      URLConnection urlConnection = url.openConnection();
  
      urlConnection.setDoInput(true);
      urlConnection.setDoOutput(false);
      urlConnection.setUseCaches(false);
      urlConnection.connect();
      InputStream is = urlConnection.getInputStream();
      try
      {
        return new StaticInfo(urlConnection.getContentLength(), urlConnection.getLastModified());
      }
      finally
      {
        is.close();
      }
    }
docs: Extracts the info from the url