ArchiveReader

interface ArchiveReader

Read side of a container. entries lists members from the header alone and touches no payload, which is "browse without extract". read materialises one entry's uncompressed bytes under the bomb ArchiveLimits.

Inheritors

Properties

Link copied to clipboard
abstract 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
abstract fun entries(): List<ArchiveEntry>

List members from the header/directory only.

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

Read one entry's uncompressed bytes, enforcing limits.