TarReader

TAR reader (v7 / ustar / GNU). TAR has no compression of its own — it is a concatenation of 512-byte-record entries — so this reader needs no codec; a .tar.gz is this reader composed over io.github.yuroyami.kitearchive.wrapper.Gzip.

Supports: ustar prefix + name (long-path), GNU L long-name pseudo-entries, octal and GNU base-256 numeric fields, normal files / directories. The full pax x/g extended-header and sparse-file handling are roadmap items (PORTING_STATUS.md).

Constructors

Link copied to clipboard
constructor(source: RandomAccessSource)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val format: ArchiveFormat

The container format this reader handles.

Functions

Link copied to clipboard
open fun close()

Release the underlying source.

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

List members from the header/directory only.

Link copied to clipboard
open override fun read(entry: ArchiveEntry, limits: ArchiveLimits = ArchiveLimits.DEFAULT): ByteArray

Read one entry's uncompressed bytes, enforcing limits.