Hi Henry, Good remark, I've updated the Javadocs!
Note that it's not necessarily a bug if no content-length header is returned by a server. Sometimes it's just not feasible/practical to compute the length in advance, especially for dynamic content. HTTP 1.1 supports this scenario, using chunk encoding for example. Merci, Jerome > -----Message d'origine----- > De : Henry Story [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 27 octobre 2006 11:49 > À : [email protected] > Objet : response.getEntity().isAvailable() use case > > The current doc for isAvailable() states > > [[ > Indicates if some fresh content is available, without > having to actually call one of the content manipulation method like > getStream() that would actually consume it. This is > especially useful > for transient representation whose content can only be accessed once. > ]] > > I just wanted to add that another use case, that one cannot ignore, > is for services that do not return the Content-Length of the entity > in the header. For example, I just found out that Roller's Atom > implementation does not return that Content-Length (will be fixed). > But how many other services out there will forget to return it? > > Just a thought, en passant, > > Henry > > Home page: http://bblfish.net/ > Sun Blog: http://blogs.sun.com/bblfish/ > Foaf name: http://bblfish.net/people/henry/card#me > > > >

