I think that the Jersey server container will close the InputStream for you.
On Thu, Sep 25, 2014 at 10:14 AM, Ralph Schwenn <rschwenn_at_web.de> wrote:
> In my opinion the only benefit is that i can log the error and close my
> input stream i am reading from.
> The behavior, according to error handling, when setting the InputStream
> directly is just the same.
>
> Bye Ralph
>
>
>
> Gesendet: Donnerstag, 25. September 2014 um 10:02 Uhr
> Von: "Mikael Ståldal" <mikael.staldal_at_appearnetworks.com>
> An: users_at_jersey.java.net
> Betreff: [Jersey] Re: Error handling streaming binary data
>
> Not an answer to your question, but I wonder what the benefit of using
> StreamingOutput like this is compared to just set the InputStream as entity
> in the response?
>
>
--
Mikael Ståldal
Chief Software Architect
*Appear*
Phone: +46 8 545 91 572
Email: mikael.staldal_at_appearnetworks.com