hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: How many bytes did I get?
Date Thu, 25 Nov 2010 14:38:59 GMT
On Thu, 2010-11-25 at 06:37 +0200, John Smith wrote:
> On 24 of November 2010 23:09:30 Oleg Kalnichevski wrote:
> > On Wed, 2010-11-24 at 14:59 +0200, John Smith wrote:
> > 
> > Do you want just the final total or you intermediate data for a process
> > indicator of some kind?
> > 
> > Oleg
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> > 
> 
> I would like a process indicator, not final total.
> 

So, what is the problem? Just count the number of bytes read so far
while reading from InputStream returned by HttpEntity#getContent.
HttpEntity#getContentLength will give you the expected total if known.

Oleg 



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


Mime
View raw message