Udostępnij za pośrednictwem


ZipEntry.Method Property

Definition

Returns the compression method of the entry. -or- Sets the compression method for the entry.

public virtual int Method { [Android.Runtime.Register("getMethod", "()I", "GetGetMethodHandler")] get; [Android.Runtime.Register("setMethod", "(I)V", "GetSetMethod_IHandler")] set; }
[<get: Android.Runtime.Register("getMethod", "()I", "GetGetMethodHandler")>]
[<set: Android.Runtime.Register("setMethod", "(I)V", "GetSetMethod_IHandler")>]
member this.Method : int with get, set

Property Value

the compression method of the entry, or -1 if not specified

Attributes

Exceptions

when value is not DEFLATED or STORED.

Remarks

Property getter documentation:

Returns the compression method of the entry.

Java documentation for java.util.zip.ZipEntry.getMethod().

Property setter documentation:

Sets the compression method for the entry.

Java documentation for java.util.zip.ZipEntry.setMethod(int).

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