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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.