Poiji.fromExcel mutates input file
See original GitHub issuePoiji’s method fromExcel(final File file, final Class<T> type) mutates the input file. When I set the input file to be read only, this yields a PoijiException wrapping FileNotFoundException (permission denied)
Caused by: java.io.FileNotFoundException: <my-file-path> (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at org.apache.poi.openxml4j.opc.internal.FileHelper.copyFile(FileHelper.java:68)
at org.apache.poi.openxml4j.opc.ZipPackage.closeImpl(ZipPackage.java:456)
at org.apache.poi.openxml4j.opc.OPCPackage.close(OPCPackage.java:479)
at com.poiji.bind.mapping.XSSFUnmarshallerFile.returnFromExcelFile(XSSFUnmarshallerFile.java:43)
... 27 more
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How To Convert Excel Data Into List Of Java Objects : Poiji API
The requirement is working with excel either to generate reports or to take input data from excel. As a java developer, we should...
Read more >Poiji (poiji 2.2.0 API) - javadoc.io
Method Summary ; static <T> List<T>, fromExcel(File file, Class<T> type, PoijiOptions options). converts excel rows into a list of objects.
Read more >Why format changes while reading data from excel file using ...
I'm assuming you're using the cell method .getNumericCellValue() which returns a double - a double will always print at least 1 decimal.
Read more >generator-jhipster-file-handling - npm
Installs entities and dependencies to enable reading from excel file data. Latest version: 1.1.1, last published: 2 years ago.
Read more >Read Excel Cell Value Rather Than Formula With Apache POI
If we're working with an Excel file that is already saved and we're not going to make changes to that spreadsheet at runtime,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks good to me!
Hi @mindyor ,
I will try to fix it for the next release. Thank you for your support by showing this problem.