public static Optional<InputStream> openStream(final URI uri){
  try {
    return UrlStreams.openStream(uri.toURL());
  }
 catch (  final MalformedURLException e) {
    throw new IllegalStateException("Bad uri specified: " + uri,e);
  }
}

public static Optional < InputStream > openStream ( final URI uri ) { try { return UrlStreams . openStream ( uri . toURL ( ) ) ; } catch ( final MalformedURLException e ) { throw new IllegalStateException ( "Bad uri specified: " + uri , e ) ; } }
opens an input stream to a given uri .
