Hi,
the new on demand parser doesn't use the ScratchFileBuffer anymore and my idea
was to overhaul/remove the usage of the ScratchFileBuffer for the creation of
new COSStreams as well. My plan was to wait for the 4.0 release. A couple of
days ago I realize it might be a good idea to introduce an interface to make the
usage of that stream a little bit more flexible. An I'd like to do it in 3.0.
In the end it wasn't that hard to do, see PDFBOX-5538 for details. But I had to
adjust some of the public method signatures such as those load-methods using
MemoryUsageSetting as parameter.
The main benefit is that the usage of the stream cache within the parser is
decoupled from the actual implementation. Furthermore users have the opportunity
to implement their own cache. Most likely we don't have to change the signature
of the loader methods in a possible 4.0 version.
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]