Class Zips
java.lang.Object
com.pnfsoftware.jeb.util.encoding.zip.Zips
Zip compression utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Create or overwrite a zip archive; add the specified entry to that archive.static void
Create or overwrite a zip archive; add the specified entry to that archive.static void
Create or overwrite a zip archive; add the specified input file to that archive.
-
Constructor Details
-
Zips
public Zips()
-
-
Method Details
-
zipFile
Create or overwrite a zip archive; add the specified input file to that archive. The input file will be added to archive root.- Parameters:
zipfile
- zip output fileinputFile
- input file- Throws:
IOException
-
zipBytes
Create or overwrite a zip archive; add the specified entry to that archive.- Parameters:
zipfile
-entryName
-data
-- Throws:
IOException
-
zipBytes
public static void zipBytes(File zipfile, String entryName, byte[] data, int offset, int length) throws IOException Create or overwrite a zip archive; add the specified entry to that archive.- Parameters:
zipfile
-entryName
-data
-offset
-length
-- Throws:
IOException
-