Return-Path: X-Original-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7D9C79DB for ; Thu, 8 Sep 2011 15:16:46 +0000 (UTC) Received: (qmail 8871 invoked by uid 500); 8 Sep 2011 15:16:46 -0000 Delivered-To: apmail-incubator-celix-dev-archive@incubator.apache.org Received: (qmail 8846 invoked by uid 500); 8 Sep 2011 15:16:46 -0000 Mailing-List: contact celix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-dev@incubator.apache.org Received: (qmail 8838 invoked by uid 99); 8 Sep 2011 15:16:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 15:16:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of a.broekhuis@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 15:16:38 +0000 Received: by yxj17 with SMTP id 17so713142yxj.6 for ; Thu, 08 Sep 2011 08:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9lZJOefQn//afdU0DZSW2aJAZYWHqcJJ3fgV7TvLm8E=; b=Cu/9t1fEjM06hnHQ4Uysowe8CCPSTHEoHCag9Xtp2evqJuyWzD2jpdIS0mnZe1t/NV GJk0ZFALCZ4RcvQGMhgLmOYxCnI7s9oq8Uk3+9kN+xkl3zLng6yfOuBHeJ3JRplN8rl9 /8I245nvhS0MhNEkcMkJXCuu6sRO+R1A4iprg= MIME-Version: 1.0 Received: by 10.42.148.138 with SMTP id r10mr337802icv.218.1315494977991; Thu, 08 Sep 2011 08:16:17 -0700 (PDT) Received: by 10.42.197.2 with HTTP; Thu, 8 Sep 2011 08:16:17 -0700 (PDT) In-Reply-To: References: <2EE6FC8A-7BC1-45F7-875C-00ACA0764F0D@luminis.nl> Date: Thu, 8 Sep 2011 17:16:17 +0200 Message-ID: Subject: Re: some remarks and questions From: Alexander Broekhuis To: celix-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8b9addf50d04ac6f8a4c X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e8b9addf50d04ac6f8a4c Content-Type: text/plain; charset=ISO-8859-1 Hi I'm using the function bundle_getEntry(..) to read a resource file > within the bundle. However I need to know the number of bytes read in the > function. Is this lacking in the API, or can I find this information > elsewhere? > > Perhaps there is a misunderstanding about what this method does, the bundle_getEntry return a path to the actual entry. Opening and reading the file is up to the user (you). The entry pointer provides a regular (0 terminated) string with the location of the entry in the bundle cache. So Celix doesn't read anything, and can't tell you the number of bytes read. Does this answer your question? -- Met vriendelijke groet, Alexander Broekhuis --90e6ba6e8b9addf50d04ac6f8a4c--