Apache POI decrypt doc file cannot process encrypted file?
问题 public static void decryptedDoc(String path,String[] password) throws FileNotFoundException, IOException{ FileOutputStream fileOut = null; for(int i=0;i<password.length;i++){ // try{ Biff8EncryptionKey.setCurrentUserPassword(password[i]); NPOIFSFileSystem fs = new NPOIFSFileSystem( new FileInputStream(path)); HWPFDocument doc=new HWPFDocument(fs.getRoot()); Biff8EncryptionKey.setCurrentUserPassword(null); String neweachpath=path.substring(0, path.length()-4)+"_decrypted"+path.substring(path