Share via


Pack200.Packer.UnknownAttribute Field

Definition

Caution

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

Indicates the action to take when a class-file containing an unknown attribute is encountered.

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

Field Value

Attributes

Remarks

Indicates the action to take when a class-file containing an unknown attribute is encountered. Possible values are the strings #ERROR, #STRIP, and #PASS.

The string #ERROR means that the pack operation as a whole will fail, with an exception of type IOException. The string #STRIP means that the attribute will be dropped. The string #PASS means that the whole class-file will be passed through (as if it were a resource file) without compression, with a suitable warning. This is the default value for this property.

Examples:

{@code
                Map p = pack200.getProperties();
                p.put(UNKNOWN_ATTRIBUTE, ERROR);
                p.put(UNKNOWN_ATTRIBUTE, STRIP);
                p.put(UNKNOWN_ATTRIBUTE, PASS);
            }

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

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