Replace MemoryUsageSetting arguments with stream cache functions

MSAL

PDFBox 3.0 takes a StreamCacheCreateFunction where PDFBox 2 took a MemoryUsageSetting: in the PDDocument constructor, in PDFMergerUtility.mergeDocuments, and in Splitter.setStreamCacheCreateFunction, which replaces Splitter.setMemoryUsageSetting. This passes the setting's streamCache, which creates the same scratch file PDFBox 2 created from the setting, or the IOUtils factory of a main memory only or temporary file only cache. PDFMergerUtility.mergeDocuments(), which PDFBox 3.0 removed, merges in main memory as it did.

org.openrewrite.apache.pdfbox.MigrateMemoryUsageSettings
mod run . --recipe=org.openrewrite.apache.pdfbox.MigrateMemoryUsageSettings

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.