public static String readAll(final URL url) throws IOException {
  try (InputStream input=url.openStream()){
    return readAll(input);
  }
 }

public static String readAll ( final URL url ) throws IOException { try ( InputStream input = url . openStream ( ) ) { return readAll ( input ) ; } }
read all of a url into a string .
