TgzArchiver
class in package klyn.io.archives

    public class TgzArchiver extends Archiver:

Archiver
└ TgzArchiver

TGZ archive implementation.

TGZ archives are generated as a TAR container wrapped in a gzip stream. The current runtime writes deterministic stored-deflate gzip blocks, which keeps the implementation dependency-free while still producing a valid `.tgz` file.

    import klyn.io
    import klyn.io.archives

    tgz = TgzArchiver()
    tgz.makeArchive("docs", "docs.tgz", FileAccessMode.OVERWRITE)
    tgz.unpackArchive("docs.tgz", "/tmp/docs", FileAccessMode.OVERWRITE)

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | TgzArchiver `TgzArchiver():` | 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.

Inherited Methods
method Inherited Methods from Archiver: getInstance, makeArchive, unpackArchive