On Wednesday 27 February 2008 06:35:20 Michael Prichard wrote: > I keep getting out of memory exceptions when trying to parse > encrypted office docs. Anyway I can check before attempting to > process if the doc is encrypted? I would just rather skip altogether. > > Thanks!
Load the SummaryInformation and use getSecurity(). Problem is, sometimes it lies. You can also look at the names of the streams in the POIFSFileSystem to determine whether it's encrypted in some situations but that's an exercise for the reader. Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
