CpioReader

cpio reader for the two portable ASCII dialects: newc/crc (magic 070701/070702, hex fields, 4-byte padding) and odc (magic 070707, octal fields, no padding). The archive ends at the TRAILER!!! entry. Old binary cpio is not handled.

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.