Bzip2ArchiveReader

An ArchiveReader decorator returned when opening Bzip2-compressed archives (.bz2, .tar.bz2, .tbz2, and .tbz).

All ArchiveReader operations are delegated transparently to the underlying platform delegate.

Parameters

delegate

the underlying native ArchiveReader handling Bzip2 stream decompression.

Constructors

Link copied to clipboard
constructor(delegate: ArchiveReader)

Functions

Link copied to clipboard
expect open override fun close()
Link copied to clipboard
@ObjCName(name = "extractEntry", swiftName = "extract")
open override fun extractEntry(entry: ArchiveEntry, sink: Sink)

Decompresses the specified entry and streams its raw content into sink.

Link copied to clipboard
open override fun getEntries(): List<ArchiveEntry>

Returns all file and directory entries recorded in the archive.