getContent( )  import java.net.*;  import java.io.*;  public class ContentGetter {  public static void main (String[] args) { String HostName= http://www.fareastern.ac.th/main.asp ; String HostName= http://www.fareastern.ac.th/main.asp ;  //Open the URL for reading  try {  URL u = new URL(HostName);  try {  Object o = u.getContent( );  System.out.println( I got a + o.getClass( ).getName( ));  } // end try  catch (IOException ex) {  System.err.println(ex);  }  } // end try  catch (MalformedURLException ex) {  System.err.println(HostName + is not a parseable URL );  }  } // end main  } // end ContentGetter ผลลัพธ์ :I got a sun.net.www.protocol.http.HttpURLConnection$HttpInputStream
{}