Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 2543 invoked from network); 11 Oct 2009 12:29:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Oct 2009 12:29:28 -0000 Received: (qmail 91654 invoked by uid 500); 11 Oct 2009 12:29:27 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 91600 invoked by uid 500); 11 Oct 2009 12:29:27 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 91585 invoked by uid 99); 11 Oct 2009 12:29:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Oct 2009 12:29:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fmandelbaum@gmail.com designates 209.85.220.207 as permitted sender) Received: from [209.85.220.207] (HELO mail-fx0-f207.google.com) (209.85.220.207) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Oct 2009 12:29:18 +0000 Received: by fxm3 with SMTP id 3so7134738fxm.44 for ; Sun, 11 Oct 2009 05:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=m9Y5mzUBCWudVY6Frd0h4elg8JeJOg3LRRvMDfLI3GM=; b=OsapdKuwCcopRUjSUEvOiSso//+xL+7PnsPztpGx2EqHyTSeoRySa22jIGbwEnncRa zNN2iFXaoooXNgp0MeIic6swu+7il3baFRrzT9vaJUusu2z8nJLAPDwZqvRwHLryLN5V pyt89HvRJLgqc44vCKJ7XkDyKysV0n+2+uOT4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=SFdj9DDR2bdpvW8UBra4LMgTOw8pf/55W5kkiH8PKBAKPSWmT8xBd+h5CNEMMdyL0k lV65ujJCxJVh6NWliQ/vtaT+urgwgVwhTt6nF2yz2ngIJYadzcEeK3YxKWDFHeEzMGV0 YyUxE71vf7oh0w0vu54VGs/qvuT5cRf6LBbRk= MIME-Version: 1.0 Received: by 10.223.73.20 with SMTP id o20mr1269906faj.71.1255264077283; Sun, 11 Oct 2009 05:27:57 -0700 (PDT) In-Reply-To: <510143ac0910102303u5e946d0fj37e753ac5ef92fb7@mail.gmail.com> References: <4e4f46500910101320v4823cc83v12a91c2a058f6791@mail.gmail.com> <510143ac0910102303u5e946d0fj37e753ac5ef92fb7@mail.gmail.com> Date: Sun, 11 Oct 2009 09:27:57 -0300 Message-ID: Subject: Re: jcr:data inputstream.close() From: =?ISO-8859-1?Q?Fabi=E1n_Mandelbaum?= To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 wr= ote: > Hi, > > On Sat, Oct 10, 2009 at 10:20 PM, Ben Short wrote: >> Should I close the inputstream obtained to read the data from a >> jcr:data property? > > Yes. > > BR, > > Jukka Zitting > --=20 Fabi=E1n Mandelbaum IS Engineer