Condividi tramite


Pack200.Packer.Effort Field

Definition

Caution

Use 'Java.Util.Jar.Pack200.IPacker.Effort'. This class will be removed in a future release.

If this property is set to a single decimal digit, the packer will use the indicated amount of effort in compressing the archive.

[Android.Runtime.Register("EFFORT")]
[System.Obsolete("Use 'Java.Util.Jar.Pack200.IPacker.Effort'. This class will be removed in a future release.")]
public const string Effort;
[<Android.Runtime.Register("EFFORT")>]
[<System.Obsolete("Use 'Java.Util.Jar.Pack200.IPacker.Effort'. This class will be removed in a future release.")>]
val mutable Effort : string

Field Value

Attributes

Remarks

If this property is set to a single decimal digit, the packer will use the indicated amount of effort in compressing the archive. Level 1 may produce somewhat larger size and faster compression speed, while level 9 will take much longer but may produce better compression.

The special value 0 instructs the packer to copy through the original JAR file directly, with no compression. The JSR 200 standard requires any unpacker to understand this special case as a pass-through of the entire archive.

The default is 5, investing a modest amount of time to produce reasonable compression.

Java documentation for java.util.jar.Pack200.Packer.EFFORT.

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