public class ZipArchiver extends Archiver:
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)| Modifier and Type | Member | Description |
|---|---|---|
| public | ZipArchiverZipArchiver(): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native override | makeArchivemakeArchive(sourcePath as String, archivePath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException |
Creates or extracts an archive. |
| public native override | unpackArchiveunpackArchive(archivePath as String, destinationPath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException |
Creates or extracts an archive. |