I've been reimplementing a tweaked Scala version of:
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hssf/eventusermodel/examples/XLS2CSVmra.java

One thing I was trying to do was to only process the first Sheet in a
workbook, rather than the current all sheets.

My plan was to use AbortableHSSFListener instead of HSSFListener, and
return a non-zero after running into the 2nd record type BOFRecord &
BOFRecord.TYPE_WORKSHEET

However, it appears that nothing (MissingRecordAwareHSSFListener
/ SheetRecordCollectingListener) works with AbortableHSSFListener?
http://poi.apache.org/apidocs/org/apache/poi/hssf/eventusermodel/package-summary.htmldoesn't
appear to have Abortable versions of the Listeners.

Anyone have another recommendation for just processing the first sheet
(other I guess than just a return statement if sheetNumber > 0 at the top
of the processRecord - or a way to get AbortableHSSFL to play nice with
everything else?

Thanks,

Eric

Reply via email to