Skip to content

Commit

Permalink
Update StreamingRowIterator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 19, 2024
1 parent a2c55b0 commit 7a539da
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.github.pjfanning.xlsx.exceptions.NotSupportedException;
import com.github.pjfanning.xlsx.exceptions.ParseException;
import com.github.pjfanning.xlsx.impl.ooxml.HyperlinkData;
import org.apache.poi.ooxml.POIXMLException;
import org.apache.poi.ss.SpreadsheetVersion;
import org.apache.poi.ss.formula.FormulaParser;
import org.apache.poi.ss.formula.FormulaRenderer;
Expand Down Expand Up @@ -571,8 +572,12 @@ private Supplier getFormatterForType(String type) {

/**
* Returns the contents of the cell, with no formatting applied
*
* @param formattedContentSupplier the supplier of the formatted content
* @return the unformatted contents
* @throws POIXMLException if there is a problem building the contents
*/
private String unformattedContents(Supplier formattedContentSupplier) {
private String unformattedContents(Supplier formattedContentSupplier) throws POIXMLException {
final String lastContents = contentBuilder.toString();
switch(currentCell.getType()) {
case "s": //string stored in shared table
Expand Down

0 comments on commit 7a539da

Please sign in to comment.