Pack200.IUnpacker.Unpack 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
Unpack(File, JarOutputStream) |
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream. |
Unpack(Stream, JarOutputStream) |
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream. |
Unpack(File, JarOutputStream)
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream.
[Android.Runtime.Register("unpack", "(Ljava/io/File;Ljava/util/jar/JarOutputStream;)V", "GetUnpack_Ljava_io_File_Ljava_util_jar_JarOutputStream_Handler:Java.Util.Jar.Pack200/IUnpackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Unpack (Java.IO.File? in, Java.Util.Jar.JarOutputStream? out);
[<Android.Runtime.Register("unpack", "(Ljava/io/File;Ljava/util/jar/JarOutputStream;)V", "GetUnpack_Ljava_io_File_Ljava_util_jar_JarOutputStream_Handler:Java.Util.Jar.Pack200/IUnpackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Unpack : Java.IO.File * Java.Util.Jar.JarOutputStream -> unit
Parameters
- in
- File
a File.
- out
- JarOutputStream
a JarOutputStream.
- Attributes
Exceptions
if I/O exception occurs.
Remarks
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream.
Does not close its output. (The output can accumulate more elements.)
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
Unpack(Stream, JarOutputStream)
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream.
[Android.Runtime.Register("unpack", "(Ljava/io/InputStream;Ljava/util/jar/JarOutputStream;)V", "GetUnpack_Ljava_io_InputStream_Ljava_util_jar_JarOutputStream_Handler:Java.Util.Jar.Pack200/IUnpackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Unpack (System.IO.Stream? in, Java.Util.Jar.JarOutputStream? out);
[<Android.Runtime.Register("unpack", "(Ljava/io/InputStream;Ljava/util/jar/JarOutputStream;)V", "GetUnpack_Ljava_io_InputStream_Ljava_util_jar_JarOutputStream_Handler:Java.Util.Jar.Pack200/IUnpackerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Unpack : System.IO.Stream * Java.Util.Jar.JarOutputStream -> unit
Parameters
- in
- Stream
an InputStream.
- out
- JarOutputStream
a JarOutputStream.
- Attributes
Exceptions
if I/O exception occurs.
Remarks
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream. The entire contents of the input stream will be read. It may be more efficient to read the Pack200 archive to a file and pass the File object, using the alternate method described below.
Closes its input but not its output. (The output can accumulate more elements.)
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.