ZipEntry

This class is used to represent a single entry in an archive. Specifically, it combines meta-data about the file (see the info field) along with the two basic operations on an entry: open and verify.

Members

Functions

dup
ZipEntry dup()

Creates a new, independent copy of this instance.

open
InputStream open()

Opens a stream for reading from the file. The contents of this stream represent the decompressed contents of the file stored in the archive.

size
uint size()

Size (in bytes) of the file's uncompressed contents.

verify
void verify()

Verifies the contents of this file by computing the CRC32 checksum, and comparing it against the stored one. Throws an exception if the checksums do not match.

Variables

info
ZipEntryInfo info;

Header information on the file. See the ZipEntryInfo structure for more information.

Meta