Pack200.IPacker.Pack Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.)
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
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.
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.