@Test(expected = CanNotOpenStreamException.class) public void open_unreachable_url() throws MalformedURLException { final String unreachable = "http: UrlUtil.open(new URL(unreachable)); }
public static InputStream open(@Nonnull final URL url) { Check.notNull(url, "url"); final InputStream ret; try { ret = url.openStream(); } catch (final IOException e) { throw new CanNotOpenStreamException(url.toString(), e); } return ret; }
UrlUtil { public static InputStream open(@Nonnull final URL url) { Check.notNull(url, "url"); final InputStream ret; try { ret = url.openStream(); } catch (final IOException e) { throw new CanNotOpenStreamException(url.toString(), e); } return ret; } }
UrlUtil { public static InputStream open(@Nonnull final URL url) { Check.notNull(url, "url"); final InputStream ret; try { ret = url.openStream(); } catch (final IOException e) { throw new CanNotOpenStreamException(url.toString(), e); } return ret; } private  UrlUtil(); }
UrlUtil { public static InputStream open(@Nonnull final URL url) { Check.notNull(url, "url"); final InputStream ret; try { ret = url.openStream(); } catch (final IOException e) { throw new CanNotOpenStreamException(url.toString(), e); } return ret; } private  UrlUtil(); static URL build(@Nonnull final String url); static InputStream open(@Nonnull final URL url); static String read(@Nonnull final URL url, @Nonnull final Charset charset); static URL toUrl(@Nonnull final File file); }
UrlUtil { public static InputStream open(@Nonnull final URL url) { Check.notNull(url, "url"); final InputStream ret; try { ret = url.openStream(); } catch (final IOException e) { throw new CanNotOpenStreamException(url.toString(), e); } return ret; } private  UrlUtil(); static URL build(@Nonnull final String url); static InputStream open(@Nonnull final URL url); static String read(@Nonnull final URL url, @Nonnull final Charset charset); static URL toUrl(@Nonnull final File file);  }