...

> > 
> > > I still don't understand what should be done if an IOException occurs
> > > (or RuntimeException) while in the read() method. Must consumeContent be
> > > called then? Or, in an exception enough to consider the stream released?
> > > 
> > 
> > When reading from an input stream, #close method should be called from a
> > finally clause to ensure proper resource release. 
> > 
> 
> Sounds like you think/agree that writeTo implementations should close
> the inputstream in a finally block (since they read from it). I'll file
> a bug report and include a patch next week.
> 
> James
> 

James et al

I deprecated HttpEntity#consumeContent in favor of a more standard
InputStream#close contract. Javadocs / tutorial have been updated to
describe the recommended way to ensure resource deallocation: 

http://svn.apache.org/viewvc?rev=932551&view=rev

Please review / comment / critique

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to