Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 28th, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Best way to log java.net.URL results
  2. public static InputStream getResource(String url) throws MalformedURLException,
  3.     IOException {
  4.     return new URL(url).openConnection().getInputStream();
  5. }