@Override public void close() throws IOException { // e.g. XSSFEventBaseExcelExtractor passes a null-document if(_document != null) { @SuppressWarnings("resource") OPCPackage pkg = _document.getPackage(); if(pkg != null) { // revert the package to not re-write the file, which is very likely not wanted for a TextExtractor! pkg.revert(); } } super.close(); }
@Override public void close() throws IOException { // e.g. XSSFEventBaseExcelExtractor passes a null-document if(_document != null) { @SuppressWarnings("resource") OPCPackage pkg = _document.getPackage(); if(pkg != null) { // revert the package to not re-write the file, which is very likely not wanted for a TextExtractor! pkg.revert(); } } super.close(); }