[ https://issues.apache.org/jira/browse/PDFBOX-5538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17627179#comment-17627179 ]
Andreas Lehmkühler commented on PDFBOX-5538: -------------------------------------------- I've replaced all occurrences of ScratchFile/ScratchFileBuffer/MemoryUsageSettings outside of org.apache.pdfbox.io with the new interface/functional interface. > Introduce interface/functional interface to handle stream caches > ---------------------------------------------------------------- > > Key: PDFBOX-5538 > URL: https://issues.apache.org/jira/browse/PDFBOX-5538 > Project: PDFBox > Issue Type: Improvement > Components: Parsing, Writing > Affects Versions: 3.0.0 PDFBox > Reporter: Andreas Lehmkühler > Assignee: Andreas Lehmkühler > Priority: Major > Fix For: 3.0.0 PDFBox > > > The parser of PDFBox uses the current implementation of > ScratchFile/ScratchFileBuffer exclusively as cache for streams when > creating/writing COSStreams. > Using an interface to handle those caches > * makes the parser code of PDFBox independent of a specific implementation of > that cache > * gives any user the opportunity to implement some other kind of a cache > * the current implementation of ScratchFile/ScratchFileBuffer can still be > used as default -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org