[
https://issues.apache.org/jira/browse/PDFBOX-5550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17642876#comment-17642876
]
Andreas Lehmkühler commented on PDFBOX-5550:
--------------------------------------------
The instance of RandomAccessReadBufferedFile is shared within the same thread
if the underlying file is the same when creating a new view
> redcuce number of open files
> ----------------------------
>
> Key: PDFBOX-5550
> URL: https://issues.apache.org/jira/browse/PDFBOX-5550
> Project: PDFBox
> Issue Type: Improvement
> Components: IO
> Affects Versions: 3.0.0 PDFBox
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 3.0.0 PDFBox
>
>
> {{org.apache.pdfbox.io.RandomAccessReadBufferedFile}} creates a new instance
> of {{{{{}org.apache.pdfbox.io.RandomAccessReadBufferedFile{}}}}} which opens
> a new file using the underlying file every time when creating a new view. The
> view of a COSStream isn't most likely closed until the entire pdf is closed.
> In the end there are as many open files as created COSStreams until the pdf
> is closed.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]