标签:密码 work path info new verify 读取 nbsp tin
String excelPath = "Excel文件路徑"; String password = "Excel文件密碼"; Workbook workbook; InputStream inp = new FileInputStream(excelPath); //解密 POIFSFileSystem pfs = new POIFSFileSystem(inp); inp.close(); EncryptionInfo encInfo = new EncryptionInfo(pfs); Decryptor decryptor = Decryptor.getInstance(encInfo); decryptor.verifyPassword(password); workbook = new XSSFWorkbook(decryptor.getDataStream(pfs));
标签:密码 work path info new verify 读取 nbsp tin
原文地址:https://www.cnblogs.com/mwd-banbo/p/9995981.html