AppleArchive.Save

Save(Stream)

Saves archive to the stream provided.

public void Save(Stream output)
ParameterTypeDescription
outputStreamDestination stream.

Exceptions

exceptioncondition
ObjectDisposedExceptionThe archive has been disposed.
ArgumentNullExceptionoutput is null.
ArgumentExceptionoutput is not writable.
ArgumentOutOfRangeExceptionConfigured LZ4 block size is not positive.
NotSupportedExceptionCompression settings are missing or unsupported, direct composition uses a non-seekable stream, or entry/archive size exceeds current Apple Archive limits.

Remarks

output must be writable. Some compression settings, such as LZ4, also require a seekable stream.

See Also


Save(string)

Saves archive to a destination file provided.

public void Save(string destinationFileName)
ParameterTypeDescription
destinationFileNameStringThe path of the archive to be created.

Exceptions

exceptioncondition
ObjectDisposedExceptionThe archive has been disposed.
ArgumentExceptiondestinationFileName is invalid.
ArgumentNullExceptiondestinationFileName is null.
ArgumentOutOfRangeExceptionConfigured LZ4 block size is not positive.
NotSupportedExceptionCompression settings are missing or unsupported, direct composition uses a non-seekable stream, or entry/archive size exceeds current Apple Archive limits.

See Also