Friday, February 16, 2007

Failure Touchscreen Ipod

Read Open url in java text file

Example in java. This code opens a url of a web page and read
the entire contents of the address. The constants are the IP and PORT <10;i++){
own proxy if available, but proxy you remove or comment this part
code.
try {/ / In case of proxy
System.setProperty ("http.proxyHost", IP);
System.setProperty ("http.proxyPort", PORT);

URL address = new URL ("http://programasjava.blogspot.com");
 InputStreamReader isr = new InputStreamReader (direccion.openStream ()); 
BufferedReader input = new BufferedReader (isr);
String line = null;
while ((line = entrada.readLine ())!= null) {text + = line
+ "\\ N";}

entrada.close ();

} catch (MalformedURLException mre) {System.out.println
(mre);

} catch (IOException ioe) {System.out.println
( ioe);}





0 comments:

Post a Comment