Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 344B6107B0 for ; Sat, 28 Feb 2015 16:58:22 +0000 (UTC) Received: (qmail 82808 invoked by uid 500); 28 Feb 2015 16:58:22 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 82785 invoked by uid 500); 28 Feb 2015 16:58:22 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 82774 invoked by uid 99); 28 Feb 2015 16:58:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2015 16:58:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.25.134.81] (HELO mailout03.t-online.de) (194.25.134.81) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2015 16:58:15 +0000 Received: from fwd13.aul.t-online.de (fwd13.aul.t-online.de [172.20.27.62]) by mailout03.t-online.de (Postfix) with SMTP id EB101184AC for ; Sat, 28 Feb 2015 17:57:52 +0100 (CET) Received: from [192.168.2.102] (rCBUqYZHZhjDVTOkrqMZM6sQm2fX8q8AKagm4JRYghczQfbFam27lRZbLshBy-Fwvi@[217.231.153.77]) by fwd13.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YRki8-0bnwsy0; Sat, 28 Feb 2015 17:57:52 +0100 Message-ID: <54F1F3A1.90705@t-online.de> Date: Sat, 28 Feb 2015 17:58:09 +0100 From: Tilman Hausherr User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: Re: Xref parsing performance References: <54F1E2FA.30402@t-online.de> <54F1EDA1.8090608@lehmi.de> <47866D84-49D0-4674-A983-8386BA3263C0@fileaffairs.de> In-Reply-To: <47866D84-49D0-4674-A983-8386BA3263C0@fileaffairs.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-ID: rCBUqYZHZhjDVTOkrqMZM6sQm2fX8q8AKagm4JRYghczQfbFam27lRZbLshBy-Fwvi X-TOI-MSGID: f15dd684-08d7-4cde-80b1-8b16ab537594 X-Virus-Checked: Checked by ClamAV on apache.org Am 28.02.2015 um 17:49 schrieb Maruan Sahyoun: >>> >> >>> >>- why change only one of the members of that cosobjectkey class to int? >>> >>According to the spec, both are integers. Maybe there's a good reason, but I'd >>> >>like to know. >> >ASFAIK there is no good reason not to change both to int. > as the offset is a 10 digit number is that really covered being an int? I would have waited for his explanation... and now I understand what he may have thought - consider this change you did: - new COSObjectKey(-fileOffset, 0)); + new COSObjectKey((int)-fileOffset, 0)); the first paramater has a double usage within PDFBox, if negative it is an offset in an object stream. Do we know that these are always smaller than 0x7FFFFFFF ? Tilman --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org