users@jersey.java.net

[Jersey] Re: Error handling streaming binary data

From: Ralph Schwenn <rschwenn_at_web.de>
Date: Thu, 25 Sep 2014 10:14:29 +0200

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?
 ​