On Mon, 12 Dec 2011, Paul Pearcy wrote:
PDDocument pdfDocument =
PDDocument.load(new CloseShieldInputStream(stream), true);
Anybody have thoughts on whether it makes sense to do this based on the
type of the underlying stream the parse method receives? Not sure if
there is a better option for controlling this behavior.
If the stream is a TikaInputStream, then we can check if we have a file,
and get that if available. OfficeParser has similar code to what we'd need
Can anyone spot a snag with doing this?
(If no-one pipes up in a few days, I'd suggest you open a new enhancement
JIRA for the change, and I'll happily make the change if no-one else beats
me to it!)
Nick