You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Muller, Anthony" <an...@sap.com> on 2012/10/22 15:39:32 UTC
[JAX-RS] StreamingOutput implementation - must I close the
outputstream?
Hello,
When implementing a StreamingOutput, must I close the outputstream at the end of the write(OutputStream) method?
Thanks and regards,
Anthony
RE: [JAX-RS] StreamingOutput implementation - must I close the
outputstream?
Posted by "Muller, Anthony" <an...@sap.com>.
Perfect, thanks Sergey :)
-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozkin@gmail.com]
Sent: lundi 22 octobre 2012 16:35
To: users@cxf.apache.org
Subject: Re: [JAX-RS] StreamingOutput implementation - must I close the outputstream?
Hi
On 22/10/12 14:39, Muller, Anthony wrote:
> Hello,
>
> When implementing a StreamingOutput, must I close the outputstream at the end of the write(OutputStream) method?
I think you should do flush() on the output stream whenever the data has
been written, close() itself is optional, it will be up to the container
to close it...
Cheers, Sergey
>
> Thanks and regards,
> Anthony
Re: [JAX-RS] StreamingOutput implementation - must I close the outputstream?
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 22/10/12 14:39, Muller, Anthony wrote:
> Hello,
>
> When implementing a StreamingOutput, must I close the outputstream at the end of the write(OutputStream) method?
I think you should do flush() on the output stream whenever the data has
been written, close() itself is optional, it will be up to the container
to close it...
Cheers, Sergey
>
> Thanks and regards,
> Anthony