Pack200IPackerExtensions.PackAsync 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
| Name | Description |
|---|---|
| PackAsync(Pack200+IPacker, JarFile, Stream) |
Converts a JAR file to a Pack200 archive on a thread pool thread. |
| PackAsync(Pack200+IPacker, JarInputStream, Stream) |
Converts a JAR input stream to a Pack200 archive on a thread pool thread. |
PackAsync(Pack200+IPacker, JarFile, Stream)
Converts a JAR file to a Pack200 archive on a thread pool thread.
public static System.Threading.Tasks.Task PackAsync(this Java.Util.Jar.Pack200.IPacker self, Java.Util.Jar.JarFile? in, System.IO.Stream? out);
static member PackAsync : Java.Util.Jar.Pack200.IPacker * Java.Util.Jar.JarFile * System.IO.Stream -> System.Threading.Tasks.Task
Parameters
- self
- Pack200.IPacker
The packer that performs the conversion.
- in
- JarFile
The JAR file to convert.
- out
- Stream
The stream to which the Pack200 archive is written.
Returns
A task that represents the packing operation.
Remarks
Runs Pack(JarFile, Stream) on a thread pool thread. The packer closes the input but leaves the output open.
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
PackAsync(Pack200+IPacker, JarInputStream, Stream)
Converts a JAR input stream to a Pack200 archive on a thread pool thread.
public static System.Threading.Tasks.Task PackAsync(this Java.Util.Jar.Pack200.IPacker self, Java.Util.Jar.JarInputStream? in, System.IO.Stream? out);
static member PackAsync : Java.Util.Jar.Pack200.IPacker * Java.Util.Jar.JarInputStream * System.IO.Stream -> System.Threading.Tasks.Task
Parameters
- self
- Pack200.IPacker
The packer that performs the conversion.
The stream from which the JAR entries are read.
- out
- Stream
The stream to which the Pack200 archive is written.
Returns
A task that represents the packing operation.
Remarks
Runs Pack(JarInputStream, Stream) on a thread pool thread. The packer closes the input but leaves the output open.
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.