org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/URLResource.java
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();
    }
  }
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();
    }
  }
Extracts the info from the url