Condividi tramite


ZipEntry.SetExtra(Byte[]) Method

Definition

Sets the optional extra field data for the entry.

[Android.Runtime.Register("setExtra", "([B)V", "GetSetExtra_arrayBHandler")]
public virtual void SetExtra (byte[]? extra);
[<Android.Runtime.Register("setExtra", "([B)V", "GetSetExtra_arrayBHandler")>]
abstract member SetExtra : byte[] -> unit
override this.SetExtra : byte[] -> unit

Parameters

extra
Byte[]

The extra field data bytes

Attributes

Exceptions

if the data length >= 64 KiB.

Remarks

Sets the optional extra field data for the entry.

Invoking this method may change this entry's last modification time, last access time and creation time, if the extra field data includes the extensible timestamp fields, such as NTFS tag 0x0001 or Info-ZIP Extended Timestamp, as specified in Info-ZIP Application Note 970311.

Java documentation for java.util.zip.ZipEntry.setExtra(byte[]).

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