Język

ZipOutputStream.PutNextEntryAsync(ZipEntry) Method

Definition

Starts a new ZIP entry as a task and positions the stream for its data.

public System.Threading.Tasks.Task PutNextEntryAsync(Java.Util.Zip.ZipEntry? e);
member this.PutNextEntryAsync : Java.Util.Zip.ZipEntry -> System.Threading.Tasks.Task

Parameters

e
ZipEntry

The ZIP entry to start writing.

Returns

A task that completes when the entry header has been written and the stream is ready for the entry data.

Remarks

This .NET wrapper uses Task.Run to call PutNextEntry(ZipEntry). It does not use a native asynchronous operation.

The call closes any active entry. If the new entry has no compression method, the stream's default method is used. If it has no modification time, the current time is used. It does not write the entry data or finish the archive.

Wait for the task to complete before writing entry data or using this stream again. Exceptions from the synchronous call, including ZIP format and output errors, are reported through the task.

.NET asynchronous wrapper implementation.

Android ZIP entry implementation.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to