Megosztás a következőn keresztül:


Pack200.IPacker.PassFilePfx Field

Definition

Indicates that a file should be passed through bytewise, with no compression.

[Android.Runtime.Register("PASS_FILE_PFX")]
public const string PassFilePfx;
[<Android.Runtime.Register("PASS_FILE_PFX")>]
val mutable PassFilePfx : string

Field Value

Attributes

Remarks

Indicates that a file should be passed through bytewise, with no compression. Multiple files may be specified by specifying additional properties with distinct strings appended, to make a family of properties with the common prefix.

There is no pathname transformation, except that the system file separator is replaced by the JAR file separator '/'.

The resulting file names must match exactly as strings with their occurrences in the JAR file.

If a property value is a directory name, all files under that directory will be passed also.

Examples:

{@code
                Map p = packer.properties();
                p.put(PASS_FILE_PFX+0, "mutants/Rogue.class");
                p.put(PASS_FILE_PFX+1, "mutants/Wolverine.class");
                p.put(PASS_FILE_PFX+2, "mutants/Storm.class");
                # Pass all files in an entire directory hierarchy:
                p.put(PASS_FILE_PFX+3, "police/");
            }

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

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