Skip to content

Commit

Permalink
runtime exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 19, 2024
1 parent db19b7e commit 08d3829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class StreamingRowIterator implements CloseableIterator<Row> {
final Set<Integer> hiddenColumns, final Map<Integer, Float> columnWidths,
final Set<CellRangeAddress> mergedCells, final Set<HyperlinkData> hyperlinks,
final Map<String, SharedFormula> sharedFormulaMap, final float defaultRowHeight,
final StreamingSheet sheet) {
final StreamingSheet sheet) throws ParseException {
this.streamingSheetReader = streamingSheetReader;
this.sst = sst;
this.stylesTable = stylesTable;
Expand Down Expand Up @@ -118,7 +118,7 @@ private float getDefaultRowHeight() {
*
* @return true if data was read
*/
private boolean getRow() {
private boolean getRow() throws ParseException {
try {
rowCache.clear();
while(rowCache.size() < rowCacheSize && parser.hasNext()) {
Expand Down Expand Up @@ -631,7 +631,7 @@ private String getAttributeValue(Attribute att) {
}

@Override
public boolean hasNext() {
public boolean hasNext() throws ParseException {
return (rowCacheIterator != null && rowCacheIterator.hasNext()) || getRow();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static boolean isNotBlank(final String str) {
return !isBlank(str);
}

public static Properties readMappings() {
public static Properties readMappings() throws ReadException {
Properties props = new Properties();
try(InputStream is = OoXmlStrictConverterUtils.class.getResourceAsStream("/ooxml-strict-mappings.properties");
BufferedReader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.ISO_8859_1))) {
Expand Down

0 comments on commit 08d3829

Please sign in to comment.