Here you can find the source of read(String url)
public static BufferedReader read(String url) throws Exception
//package com.java2s; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; public class Main { public static BufferedReader read(String url) throws Exception { return new BufferedReader(new InputStreamReader(new URL(url).openStream())); }/*ww w .j a va 2s. co m*/ }