AppleArchiveEntry.Open

AppleArchiveEntry.Open method

Opens the entry for extraction and provides a stream with the entry content.

public Stream Open()

Return Value

A readable stream that contains the extracted entry data.

Exceptions

exceptioncondition
NotSupportedExceptionThe entry belongs to a solid Apple Archive or uses an unsupported compression method.
InvalidDataExceptionThe checksum or digest stored for the entry does not match the extracted data.
InvalidOperationExceptionThe entry belongs to an archive prepared for composition, or the entry data cannot be opened from a non-seekable archive stream.
ObjectDisposedExceptionThe source stream has been disposed.
IOExceptionAn I/O error occurs.

Remarks

Read from the returned stream to obtain the original entry content. If the archive contains checksum fields, the checksum is verified while the returned stream is read.

See Also