ZipArchiver
class in package klyn.io.archives

    public class ZipArchiver extends Archiver:

Archiver
└ ZipArchiver

ZIP archive implementation.

This implementation writes and reads the ZIP container directly through the Klyn native runtime. Newly created entries use the standard "stored" compression method, which keeps the implementation deterministic and avoids any dependency on external commands.

    import klyn.io
    import klyn.io.archives

    zip = ZipArchiver()
    zip.makeArchive("docs", "docs.zip", FileAccessMode.OVERWRITE)
    zip.unpackArchive("docs.zip", "/tmp/docs", FileAccessMode.OVERWRITE)

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ZipArchiver `ZipArchiver():` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public native override | makeArchive `makeArchive(sourcePath as String, archivePath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException` | Creates or extracts an archive.
public native override | unpackArchive `unpackArchive(archivePath as String, destinationPath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException` | Creates or extracts an archive.

Methods inherited from Archiver: getInstance, makeArchive, unpackArchive