hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Pandian <r.rajapand...@verchaska.com>
Subject RE : Problem in down loading page
Date Mon, 09 Jan 2006 06:18:39 GMT
Hello Roland

The  code used for  reading from the stream was pasted below, I hope 
this  is correct


InputStream in = method2.getResponseBodyAsStream();
              try {

                InputStreamReader inR = new InputStreamReader( in );
                BufferedReader buf = new BufferedReader(inR);
                String line = buf.readLine();
                while ( ( line = buf.readLine() ) != null ) {
                  System.out.println( line );
                }
              } finally {
                in.close();
              }
If this is correct is there any possibility of not getting the expected 
result.Thank you.

regards
rajapandian.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message