Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 76859 invoked from network); 2 Oct 2007 13:28:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 13:28:31 -0000 Received: (qmail 81999 invoked by uid 500); 2 Oct 2007 13:28:13 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 81982 invoked by uid 500); 2 Oct 2007 13:28:13 -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 81970 invoked by uid 99); 2 Oct 2007 13:28:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 06:28:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.maddriver@gmail.com designates 209.85.128.190 as permitted sender) Received: from [209.85.128.190] (HELO fk-out-0910.google.com) (209.85.128.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 13:28:15 +0000 Received: by fk-out-0910.google.com with SMTP id b27so4989961fka for ; Tue, 02 Oct 2007 06:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LoyhK/RcSIra1I13jRkMPryzq+P+/yMFluBEeTI8XTg=; b=EzzFgDRzVLfa5PAcMbukCGzcwp4DvIVLYqsKFyDHDBfTjxUYwLDvJ+YJ1b/lzmwqbbmA0J7OoICtV489Y5UHLS902fTpKfsqrCzUSd8HbO+p4gEZiCoc4K0ueVNS+yktS0xUsTbMEJyturg6G6l5onAbyhJ1nE+WyXMC8jN2rGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O6Cp+2P44PS8R4NC91Br3R5hxvgiPJCVaRAeyfvDRhv7+GAgqMb3+VGiDTCAhUpDOfoYCGB+Ns7NKFqzmXuhINjq7ye153stbahLEwbDETEPJKlgkiVxbJUir4nes3CYptjsVSFD4ZeaZ98XYcvd2e8mf29EXoIZeYxowbCz9jc= Received: by 10.82.119.17 with SMTP id r17mr8364894buc.1191331673851; Tue, 02 Oct 2007 06:27:53 -0700 (PDT) Received: by 10.82.115.17 with HTTP; Tue, 2 Oct 2007 06:27:53 -0700 (PDT) Message-ID: Date: Tue, 2 Oct 2007 17:27:53 +0400 From: "Alexander Nesterov" To: users@jackrabbit.apache.org Subject: Re: Getting the size of binary node content In-Reply-To: <5f211bd50710020607g11446463t29bf6bb8d81edbde@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5f211bd50710020607g11446463t29bf6bb8d81edbde@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 10/2/07, Thomas Mueller wrote: > Hi, > > Property.getLength(): > Returns the length of the value of this property. Returns the length > in bytes if the value is a PropertyType.BINARY, otherwise it returns > the number of characters needed to display the value in its string > form. Returns -1 if the implementation cannot determine the length. > > Does this not work, or did I misunderstand the problem? The problem was that i didn't know about Property.getLength() method. I tried to use getLength() method and it works for me. Thanks a lot for help! -- Alexander Nesterov