/** * Returns an Iterator which will let you get at all the * different Sheets in turn. * Each sheet's InputStream is only opened when fetched * from the Iterator. It's up to you to close the * InputStreams when done with each one. */ @Override public Iterator<InputStream> getSheetsData() throws IOException, InvalidFormatException { return new SheetIterator(workbookPart); }
/** * Returns an Iterator which will let you get at all the * different Sheets in turn. * Each sheet's InputStream is only opened when fetched * from the Iterator. It's up to you to close the * InputStreams when done with each one. */ @Override public Iterator<InputStream> getSheetsData() throws IOException, InvalidFormatException { return new SheetIterator(workbookPart); }