Java tutorial
//package com.java2s; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; public class Main { public static Object fetch(String address) throws MalformedURLException, IOException { URL url = new URL(address); Object content = url.getContent(); return content; } }