Hi group,

I have following code in a sun jdk 1.6 desktop application as well as in an
android app. In the desktop application the html code of the website is read
in line by line as expected, but in android the EOL is somehow missed and
several, sometimes all, lines are read in in one.
What strikes me is, why does android behave different to the standard jdk
for this code?

URL url = new URL("http://www.spiegel.de/";); //just an example
System.out.println(url);
DataInputStream dis = new DataInputStream(new
BufferedInputStream(url.openStream()));
while ((s = dis.readLine()) != null){
System.out.println(s);
}

Thanks for any ideas,
Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to