Package io.github.astrapi69.zip.sevenz
Class SevenZFileExtensions
java.lang.Object
io.github.astrapi69.zip.sevenz.SevenZFileExtensions
Utility class for handling 7z (7-Zip) file compression and decompression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Extracts the contents of a 7z archive to the specified destination directory.static void
Extracts the contents of a 7z archive to the specified destination directory.static void
Compresses the given files into a 7z archive.static void
Compresses the given files into a 7z archive.
-
Constructor Details
-
SevenZFileExtensions
public SevenZFileExtensions()
-
-
Method Details
-
zipFiles
Compresses the given files into a 7z archive.- Parameters:
sevenZipFile
- The destination 7z file.dirToZip
- The directory to be zipped.files
- The files to be included in the 7z archive.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
zipFiles
Compresses the given files into a 7z archive.- Parameters:
sevenZipFile
- The destination 7z file.files
- The files to be included in the 7z archive.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
extract
Extracts the contents of a 7z archive to the specified destination directory.- Parameters:
sevenZipFile
- The source 7z file.destination
- The destination directory.password
- The password for encrypted 7z files.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
extract
Extracts the contents of a 7z archive to the specified destination directory.- Parameters:
sevenZipFile
- The source 7z file.destination
- The destination directory.- Throws:
IOException
- Signals that an I/O exception has occurred.
-