Re: Speeding up URLConnection
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 17:41:54 +0100
mark13.pl@xxxxxxxxx wrote:
BufferedReader dis = new BufferedReader(new
InputStreamReader(conn.getInputStream()));
In general the buffering should be immediately around the lowest-level stream
(the one that does real IO). There may be circumstances where you need
buffering at outer levels too, but that's not so common.
Reader reader = new InputStreamReader(
new BufferedInputStream(
conn.getInputStream()));
BTW, /don't/ forget about the character encoding -- in this context it is very
unlikely to be an issue you can safely ignore.
-- chris
.
- References:
- Speeding up URLConnection
- From: mark13 . pl
- Speeding up URLConnection
- Prev by Date: Re: robot gui approach
- Next by Date: Re: What replaces StringBufferInputStream
- Previous by thread: Re: Speeding up URLConnection
- Next by thread: Re: Speeding up URLConnection
- Index(es):