Package group24.escaperoom.utils
Class Zip
java.lang.Object
group24.escaperoom.utils.Zip
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCreateArchive(String filepath) Create a zip archive of the given filepath.static booleanUnpackArchive(String filepath, File destination) Unzip the given archive into given destination.
-
Constructor Details
-
Zip
public Zip()
-
-
Method Details
-
CreateArchive
Create a zip archive of the given filepath. Accepts folders or files. Creates the zip archive in the same directory as the source, with the same name as the source but with the extention set to `.zip` Returnstrueif successful,falseotherwise -
UnpackArchive
Unzip the given archive into given destination. It is assumed that the destination is a directory which exists. Returnstrueif successful,falseotherwise
-