pdfbox
pdfbox copied to clipboard
close PDFStreamParser
The PDFStreamParser has a close method. Should it be closed outside or the close method should be protected (private)?
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.
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)?