Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

close PDFStreamParser#290

Open
valerybokov wants to merge 1 commit intoapache:trunk from
valerybokov:close-PDFStreamParser
Open

close PDFStreamParser #290
valerybokov wants to merge 1 commit intoapache:trunk from
valerybokov:close-PDFStreamParser

Conversation

@valerybokov
Copy link

@valerybokov valerybokov commented Oct 13, 2025

The PDFStreamParser has a close method. Should it be closed outside or the close method should be protected (private)?

Copy link
Contributor

lehmi commented Oct 16, 2025
edited
Loading

The parser is closed in org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken() once the end is reached.

I'm not sure if I like that behaviour as it isn't transparent to the user .... maybe we should refactor that first.

Copy link
Author

The parser is closed in org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken() once the end is reached.

I'm not sure if I like that behaviour as it isn't transparent to the user .... maybe we should refactor that first.

So why isn't it protected (PDFStreamParser.close)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /