martedì 11 marzo 2008

InputStream from URL


try {

URL u = new URL("http://massimofazzolari.blogspot.com");

InputStream in = u.openStream( );

int c;

while ((c = in.read( )) != -1) System.out.write(c);

}
catch (IOException ex) {
System.err.println(ex);
}

Nessun commento: