Package io.github.astrapi69.zip.sevenz
Class SevenZOutputFileExtensions
java.lang.Object
io.github.astrapi69.zip.sevenz.SevenZOutputFileExtensions
Extension functions for SevenZOutputFile.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SevenZOutputFileExtensions
public SevenZOutputFileExtensions()
-
-
Method Details
-
add
public static void add(org.apache.commons.compress.archivers.sevenz.SevenZOutputFile sevenZOutputFile, String dirToZip, File file) throws IOException Adds a file to the 7z archive under the specified directory- Parameters:
sevenZOutputFile
- The 7z archive zip file to add the filedirToZip
- The directory to be zipped.file
- The file to be added.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
add
public static void add(org.apache.commons.compress.archivers.sevenz.SevenZOutputFile sevenZOutputFile, File file) throws IOException Adds a file to the 7z archive.- Parameters:
sevenZOutputFile
- The 7z archive zip file to add the filefile
- The file to be added.- Throws:
IOException
- Signals that an I/O exception has occurred.
-