poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <n...@torchbox.com>
Subject Re: total records using event model
Date Mon, 19 May 2008 11:07:53 GMT
On Fri, 16 May 2008, visu wrote:
> How do i find out how many total records are in excel file while using 
> event model.

Count them?

public class Counter implements HSSFListener {
 	private int numRecords = 0;
 	public void processRecord(Record record) {
 		numRecords++;
 	}
}

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message