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


Pack200.IUnpacker Interface

Definition

The unpacker engine converts the packed stream to a JAR file.

[Android.Runtime.Register("java/util/jar/Pack200$Unpacker", "", "Java.Util.Jar.Pack200/IUnpackerInvoker")]
public interface Pack200.IUnpacker : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/util/jar/Pack200$Unpacker", "", "Java.Util.Jar.Pack200/IUnpackerInvoker")>]
type Pack200.IUnpacker = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

The unpacker engine converts the packed stream to a JAR file. An instance of the engine can be obtained using #newUnpacker.

Every JAR file produced by this engine will include the string "PACK200" as a zip file comment. This allows a deployer to detect if a JAR archive was packed and unpacked.

Note: Unless otherwise noted, passing a null argument to a constructor or method in this class will cause a NullPointerException to be thrown.

This version of the unpacker is compatible with all previous versions.

Added in 1.5.

Java documentation for java.util.jar.Pack200.Unpacker.

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.

Fields

DeflateHint

Property indicating that the unpacker should ignore all transmitted values for DEFLATE_HINT, replacing them by the given value, #TRUE or #FALSE.

False

The string "false", a possible value for certain properties.

Keep

The string "keep", a possible value for certain properties.

Progress

The unpacker's progress as a percentage, as periodically updated by the unpacker.

True

The string "true", a possible value for certain properties.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

AddPropertyChangeListener(IPropertyChangeListener)

Registers a listener for PropertyChange events on the properties map.

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Properties()

Get the set of this engine's properties.

RemovePropertyChangeListener(IPropertyChangeListener)

Remove a listener for PropertyChange events, added by the #addPropertyChangeListener.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
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.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)
UnpackAsync(Pack200+IUnpacker, File, JarOutputStream)
UnpackAsync(Pack200+IUnpacker, Stream, JarOutputStream)

Applies to