I should mention that the exceptions don't really tell if the files are
password protected or not. For word, I catch an
ArrayIndexOutOfBoundsException, or java.lang.NegativeArraySizeException.
I'm guessing that is not the expected behaviour.
thanks
-----Original Message-----
From: Justin Warren
Sent: Monday, April 16, 2007 2:49 PM
To: poi-user@jakarta.apache.org
Subject: Encryption/password protected excel/word files
Hi all,
I am trying to detect if a file is password protected before reading it
(ie, if it is password protected, I want to ignore it). Right now, I am
just catching exceptions that get thrown, but I was wondering if there
was another way of doing this.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
|