Perfect, thanks Sergey :)

-----Original Message-----
From: Sergey Beryozkin [mailto:[email protected]] 
Sent: lundi 22 octobre 2012 16:35
To: [email protected]
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

Reply via email to