Udostępnij za pośrednictwem


Pack200.IPacker.Pack Method

Definition

Overloads

Pack(JarFile, Stream)

Takes a JarFile and converts it into a Pack200 archive.

Pack(JarInputStream, Stream)

Takes a JarInputStream and converts it into a Pack200 archive.

Pack(JarFile, Stream)

Takes a JarFile and converts it into a Pack200 archive.

[Android.Runtime.Register("pack", "(Ljava/util/jar/JarFile;Ljava/io/OutputStream;)V", "GetPack_Ljava_util_jar_JarFile_Ljava_io_OutputStream_Handler:Java.Util.Jar.Pack200/IPackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Pack (Java.Util.Jar.JarFile? in, System.IO.Stream? out);
[<Android.Runtime.Register("pack", "(Ljava/util/jar/JarFile;Ljava/io/OutputStream;)V", "GetPack_Ljava_util_jar_JarFile_Ljava_io_OutputStream_Handler:Java.Util.Jar.Pack200/IPackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Pack : Java.Util.Jar.JarFile * System.IO.Stream -> unit

Parameters

in
JarFile

a JarFile

out
Stream

an OutputStream

Attributes

Exceptions

if I/O exception occurs.

Remarks

Takes a JarFile and converts it into a Pack200 archive.

Closes its input but not its output. (Pack200 archives are appendable.)

Java documentation for java.util.jar.Pack200.Packer.pack(java.util.jar.JarFile, java.io.OutputStream).

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

Pack(JarInputStream, Stream)

Takes a JarInputStream and converts it into a Pack200 archive.

[Android.Runtime.Register("pack", "(Ljava/util/jar/JarInputStream;Ljava/io/OutputStream;)V", "GetPack_Ljava_util_jar_JarInputStream_Ljava_io_OutputStream_Handler:Java.Util.Jar.Pack200/IPackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Pack (Java.Util.Jar.JarInputStream? in, System.IO.Stream? out);
[<Android.Runtime.Register("pack", "(Ljava/util/jar/JarInputStream;Ljava/io/OutputStream;)V", "GetPack_Ljava_util_jar_JarInputStream_Ljava_io_OutputStream_Handler:Java.Util.Jar.Pack200/IPackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Pack : Java.Util.Jar.JarInputStream * System.IO.Stream -> unit

Parameters

in
JarInputStream

a JarInputStream

out
Stream

an OutputStream

Attributes

Exceptions

if I/O exception occurs.

Remarks

Takes a JarInputStream and converts it into a Pack200 archive.

Closes its input but not its output. (Pack200 archives are appendable.)

The modification time and deflation hint attributes are not available, for the JAR manifest file and its containing directory.

Java documentation for java.util.jar.Pack200.Packer.pack(java.util.jar.JarInputStream, java.io.OutputStream).

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