fix delete of temp file after odt % ooxml parser

Close zipfile after parsing
pull/46/head
reger 9 years ago
parent 379e9b330d
commit 764f5100f0

@ -165,6 +165,8 @@ public class odtParser extends AbstractParser implements Parser {
} }
} }
zipFile.close(); // close zipfile (so underlaying file (temp file) can be deleted later
// make the languages set // make the languages set
final Set<String> languages = new HashSet<String>(1); final Set<String> languages = new HashSet<String>(1);
if (docLanguage != null) languages.add(docLanguage); if (docLanguage != null) languages.add(docLanguage);
@ -197,7 +199,7 @@ public class odtParser extends AbstractParser implements Parser {
"", "",
null, null,
descriptions, descriptions,
0.0f, 0.0f, 0.0d, 0.0d,
contentBytes, contentBytes,
null, null,
null, null,

@ -151,6 +151,8 @@ public class ooxmlParser extends AbstractParser implements Parser {
} }
} }
zipFile.close(); // close zipfile (so underlaying file (temp file) can be deleted later
// make the languages set // make the languages set
final Set<String> languages = new HashSet<String>(1); final Set<String> languages = new HashSet<String>(1);
if (docLanguage != null && docLanguage.isEmpty()) if (docLanguage != null && docLanguage.isEmpty())

Loading…
Cancel
Save