You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Ben Short <be...@benshort.co.uk> on 2009/10/10 22:20:36 UTC

jcr:data inputstream.close()

Hi,

Should I close the inputstream obtained to read the data from a
jcr:data property?

Regards

Ben

Re: jcr:data inputstream.close()

Posted by Fabián Mandelbaum <fm...@gmail.com>.
Hello, if it helps, I use Common's IO AutoCloseInputStream to decorate
(enclose) the InputStream, that way when the thing is done with the
Stream, it's closed automatically, no need to call close() explicitly
on the stream.

On Sun, Oct 11, 2009 at 3:03 AM, Jukka Zitting <ju...@gmail.com> wrote:
> Hi,
>
> On Sat, Oct 10, 2009 at 10:20 PM, Ben Short <be...@benshort.co.uk> wrote:
>> Should I close the inputstream obtained to read the data from a
>> jcr:data property?
>
> Yes.
>
> BR,
>
> Jukka Zitting
>



-- 
Fabián Mandelbaum
IS Engineer

Re: jcr:data inputstream.close()

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Sat, Oct 10, 2009 at 10:20 PM, Ben Short <be...@benshort.co.uk> wrote:
> Should I close the inputstream obtained to read the data from a
> jcr:data property?

Yes.

BR,

Jukka Zitting