public class

Zips

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.encoding.zip.Zips

Class Overview

Zip compression utility methods.

Summary

Public Constructors
Zips()
Public Methods
static void zipBytes(File zipfile, String entryName, byte[] data)
Create or overwrite a zip archive; add the specified entry to that archive.
static void zipBytes(File zipfile, String entryName, byte[] data, int offset, int length)
Create or overwrite a zip archive; add the specified entry to that archive.
static void zipFile(File zipfile, File inputFile)
Create or overwrite a zip archive; add the specified input file to that archive.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Zips ()

Public Methods

public static void zipBytes (File zipfile, String entryName, byte[] data)

Create or overwrite a zip archive; add the specified entry to that archive.

Throws
IOException

public static void zipBytes (File zipfile, String entryName, byte[] data, int offset, int length)

Create or overwrite a zip archive; add the specified entry to that archive.

Throws
IOException

public static void zipFile (File zipfile, File inputFile)

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 file
inputFile input file
Throws
IOException