poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Warren" <justin_war...@consilient.com>
Subject RE: Encryption/password protected excel/word files
Date Tue, 17 Apr 2007 12:30:48 GMT
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/


Mime
View raw message