Conversation
Flamifly
commented
Jun 8, 2026
- Instead of PlainTextParser the BaseTextParser will be used since none of the sub classes uses the functionality of the PlainTextParser.
- I also added support for Streams for every Text Parser
- I moved the Office & PDF Parsers to it's own Directories
- using BaseTextParser for most Text Parser - removed ValidateContext from sub parsers
|
/oc help review this PR |
|
Here's my review of PR packages → master by @Flamifly: SummaryConsolidates text parsers under Positive
Issues
VerdictApprove with minor suggestions. Changes are net positive — consolidation is well-motivated, stream support is valuable, and all tests pass. Issues 2–5 are pre-existing and don't block merge. Issue 1 ( |
-> ParseText passes the already opened Stream
|
ParseText passes always a Stream to avoid to have the Stream handling in the Parsers and have one thing to parse |
|
/oc help review this PR |
Review: PR
|
|
|
/oc help review this PR |
|
All issues from prior reviews have been addressed:
The consolidation under
One minor nit: internal override void ValidateContext()
{
base.ValidateContext();
Utility.ThrowIfProtected(Context);
}Verdict: Approve. The code is clean, tests pass, and the refactoring is well-motivated. The PDF protection check is a minor polish item, not a blocker. |
|
The Comment about PDFTextParser is wrong, it overwrites the ValidateContext Method internal override void ValidateContext()
{
base.ValidateContext();
Utility.ThrowIfProtected(Context);
} |
|
If you are fine with it @tonyqus I would merge it |


