From c4cc534fe9e6c7ae3a59f756f52eab0080bbfa82 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Sat, 5 Dec 2015 20:05:41 +0100 Subject: [PATCH] add Archive.createArchive(File) method --- src/main/java/com/adobe/epubcheck/util/Archive.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/adobe/epubcheck/util/Archive.java b/src/main/java/com/adobe/epubcheck/util/Archive.java index 70405ed6f..acedd1224 100644 --- a/src/main/java/com/adobe/epubcheck/util/Archive.java +++ b/src/main/java/com/adobe/epubcheck/util/Archive.java @@ -66,6 +66,12 @@ public void deleteEpubFile() } } + public void createArchive(File absoluteEpubFilePath) + { + this.epubFile = absoluteEpubFilePath; + createArchive(); + } + public void createArchive() { // using commons compress to allow setting filename encoding pre java7