Now I see it in the description of #getContent. On Wed, Jan 27, 2016 at 2:11 PM, Oleg Kalnichevski <ol...@apache.org> wrote: > On Wed, 2016-01-27 at 13:45 -0500, Benson Margulies wrote: >> The documentation for HttpEntity is leaving me a bit puzzled: if I >> have content generated on the fly, I can implement writeTo, but I >> can't implement getContent() without generating into an array and >> making a ByteArrayInputStream. Can I just return null from >> getContent()? If so, I will make a PR to clarify the doc. >> > > It it legal for #getContent to throw UnsupportedOperationException. I > think javadoc states that, does not it? > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org >
--------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org