RE: InputStream vs. getText
Alex <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
I am reading source code of URL. If I read it using InputStream not
everything goes to the output, on the other hand if I use
System.out.println(response.getText()); it's working fine and prints out
whole output of the source code. See below
InputStreamReader inR = new InputStreamReader( body );
BufferedReader buf = new BufferedReader( inR );
String line;
while ( ( line = buf.readLine() ) != null )
output stops at
'function submitForm(blahblah, ablahblah) { '
How come?