Skip to content

add new XSSFParser#870

Merged
pjfanning merged 3 commits intoapache:trunkfrom
pjfanning:XSSFParser
Aug 20, 2025
Merged

add new XSSFParser#870
pjfanning merged 3 commits intoapache:trunkfrom
pjfanning:XSSFParser

Conversation

@pjfanning
Copy link
Member

POI has lots of RuntimeExceptions and it would be too much work to change to using checked exceptions. Thousands of method signatures would change and lots of new try/catch changes would be needed in intermediate methods.

We can take some of the most used code paths and provide wrapper APIs that use checked exceptions by wrapping any non-fatal exception/error as a checked exception.

@pjfanning
Copy link
Member Author

@tballison @centic9 What do you think of this new API that wraps the core XSSFWorkbook constructor?

  • I can add tests before merging it
  • I can create equivalents for XWPFDocument and XMLSlideshow
  • Eventually, the parser could also support configurable parsing - enabling and disabling features for a particular parse task, etc.

@pjfanning pjfanning merged commit 54f1f5d into apache:trunk Aug 20, 2025
1 check passed
@pjfanning pjfanning deleted the XSSFParser branch August 20, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant