![Example Example](http://net-informations.com/q/mis/img/zip.png)
Compress and Decompress 7z files Recursively. Compressing files in 7z format: We use the SevenZOutputFile to compress files and/or directories into 7z format. We can add entries in the archive using the SevenZArchiveEntry. Decompressing 7z archive: We can read the 7z archive using the SevenZFile class. (Java) Create a WinZip/7-Zip compatible AES Encrypted Zip. Creates a WinZip compatible AES-encrypted.zip archive. Chilkat Java Downloads. Java Libs for Windows, Linux, Alpine Linux. // This example requires the Chilkat API to have been previously unlocked.
Field Summary
Fields Modifier and Type Field and Description static int
CENATT
static int
CENATX
static int
CENCOM
static int
CENCRC
static int
CENDSK
static int
CENEXT
static int
CENFLG
static int
CENHDR
static int
CENHOW
static int
CENLEN
static int
CENNAM
static int
CENOFF
static long
CENSIG
static int
CENSIZ
static int
CENTIM
static int
CENVEM
static int
CENVER
static int
ENDCOM
static int
ENDHDR
static int
ENDOFF
static long
ENDSIG
static int
ENDSIZ
static int
ENDSUB
static int
ENDTOT
static int
EXTCRC
static int
EXTHDR
static int
EXTLEN
static long
EXTSIG
static int
EXTSIZ
static int
LOCCRC
static int
LOCEXT
static int
LOCFLG
static int
LOCHDR
static int
LOCHOW
static int
LOCLEN
static int
LOCNAM
static long
LOCSIG
static int
LOCSIZ
static int
LOCTIM
static int
LOCVER
Fields inherited from class java.util.zip.InflaterInputStream
buf, inf, len
Fields inherited from class java.io.FilterInputStream
in
Constructor Summary
Constructors Constructor and Description ZipInputStream(InputStream in)
ZipInputStream(InputStream in, Charset charset)
Creates a new ZIP input stream.
Method Summary
Methods Modifier and Type Method and Description int
available()
Returns 0 after EOF has reached for the current entry data, otherwise always return 1.void
close()
Closes this input stream and releases any system resources associated with the stream.void
closeEntry()
Closes the current ZIP entry and positions the stream for reading the next entry.protected ZipEntry
createZipEntry(String name)
Creates a newZipEntry
object for the specified entry name.ZipEntry
getNextEntry()
Reads the next ZIP file entry and positions the stream at the beginning of the entry data.int
read(byte[] b, int off, int len)
Reads from the current ZIP entry into an array of bytes.long
skip(long n)
Skips specified number of bytes in the current ZIP entry.Methods inherited from class java.util.zip.InflaterInputStream
fill, mark, markSupported, read, reset
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait