Package org.apache.poi.xssf.usermodel

Examples of org.apache.poi.xssf.usermodel.XSSFWorkbook.unLock()


        // removing the password again
        workbook.setWorkbookPassword(null, null);
        assertFalse(workbook.getCTWorkbook().getWorkbookProtection().isSetWorkbookPassword());
       
        // removing the whole protection structure
        workbook.unLock();
        assertNull(workbook.getCTWorkbook().getWorkbookProtection());
       
        // setting a null password shouldn't introduce the protection element
        workbook.setRevisionsPassword(null, null);
        assertNull(workbook.getCTWorkbook().getWorkbookProtection());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.