Class SavePasswordProtectedXlsx
- java.lang.Object
-
- org.apache.poi.examples.xssf.streaming.SavePasswordProtectedXlsx
-
public final class SavePasswordProtectedXlsx extends Object
An example that outputs a simple generated workbook that is password protected. The example highlights how to do this in streaming way.- The example demonstrates that all temp files are removed.
SXSSFWorkbookWithCustomZipEntrySourceextends SXSSFWorkbook to ensure temp files are encrypted.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static voidsave(InputStream inputStream, String filename, String pwd)
-
-
-
Method Detail
-
save
public static void save(InputStream inputStream, String filename, String pwd) throws InvalidFormatException, IOException, GeneralSecurityException
-
-