Here you can find the source of load(URL pUrl)
public static List<String> load(URL pUrl) throws IOException
//package com.java2s; import java.io.*; import java.util.List; import java.util.ArrayList; import java.net.URL; public class Main { public static List<String> load(URL pUrl) throws IOException { final InputStream is = pUrl.openStream(); final BufferedReader reader = new BufferedReader(new InputStreamReader(is)); final List<String> lines = new ArrayList<String>(); try {/*ww w .ja va2 s .c o m*/ String line = null; while ((line = reader.readLine()) != null) { lines.add(line); } return lines; } finally { reader.close(); } } }