Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B7697CA9 for ; Fri, 5 Aug 2011 19:36:05 +0000 (UTC) Received: (qmail 97068 invoked by uid 500); 5 Aug 2011 19:36:05 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 96965 invoked by uid 500); 5 Aug 2011 19:36:04 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 96957 invoked by uid 99); 5 Aug 2011 19:36:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 19:36:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.188.112.57] (HELO smtps.newmex.com) (209.188.112.57) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 19:35:55 +0000 Received: from 15-MacBook-Pro.local (97-123-14-100.albq.qwest.net [97.123.14.100]) (Authenticated sender: mickeydog) by smtps.newmex.com (Postfix) with ESMTP id 8B657BD01E3 for ; Fri, 5 Aug 2011 13:35:33 -0600 (MDT) Message-ID: <4E3C45FE.5040004@taosnet.com> Date: Fri, 05 Aug 2011 13:35:26 -0600 From: Mck User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: POI Users List Subject: Re: Problem with order of HSSF Listener events References: <4E3AD9BE.8000303@taosnet.com> <4E3C0E43.8050202@taosnet.com> <4E3C1829.9000201@taosnet.com> <4E3C236E.4000600@taosnet.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Looking at the BiffViewer output, I see that there is an EOF for each sheet, and one for the actual End Of File. So my test code was wrong, I need to change one line to if (eofCount == totalNumberOfSheets + 1) { Thanks, Nick, for your help On 8/5/11 11:30 AM, Nick Burch wrote: > On Fri, 5 Aug 2011, Mck wrote: >> I set the record listener parameter to null (see code below) and ran it. > > Just run it on the command line, eg > > java -classpath poi-3.8-beta4-20110806.jar > org.apache.poi.hssf.dev.BiffViewer problem.xls > dump.txt > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org > For additional commands, e-mail: user-help@poi.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org