extract

@ObjCName(name = "extract", swiftName = "extract")
fun ArchiveEntry.extract(reader: ArchiveReader, sink: Sink)(source)

Extracts the uncompressed content of this entry from reader and writes it into sink.

This is a convenience extension equivalent to calling reader.extractEntry(this, sink).

Parameters

reader

the open ArchiveReader from which this entry originated.

sink

the destination Sink that receives the decompressed bytes.

Throws

if decompression fails or an I/O error occurs.

if reader has already been closed.