 <p>Go to check LibreOffice project (that already handles these archives), it has parts written in Java, and for sure you could find and use their mecanisms to check for corrupted files.</p> <p>I think you can get the code from here: </p> <p><a href="http://www.libreoffice.org/get-involved/developers/" rel="nofollow">http://www.libreoffice.org/get-involved/developers/</a></p>