On Sat, 9 Sep 2006, Feris Thia wrote:
Can I use POI API to validate whether it is a valid Word, Excel, Powerpoint document ?? If I can, what API should I use ?
Can you not just try and open it with the appropriate handler (eg HSLFSlideShow for powerpoint), and see if any exceptions are thrown? If you don't get any, there's a fair chance it's a valid document
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
