Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
public static interface

Pack200.Unpacker

java.util.jar.Pack200.Unpacker

Class Overview

The interface defining the API for converting a packed stream in the Pack200 format to a JAR file.

Summary

Constants
String DEFLATE_HINT The String indicating if the unpacker should ignore all transmitted values,can be replaced by either true or false .
String FALSE a String representation of false .
String KEEP a String representation of keep .
String PROGRESS the progress as a percentage .
String TRUE a String representation of true .
Public Methods
abstract void addPropertyChangeListener ( PropertyChangeListener listener)
add a listener for PropertyChange events.
abstract SortedMap < String String > properties ()
Returns a sorted map of the properties of this unpacker.
abstract void removePropertyChangeListener ( PropertyChangeListener listener)
remove a listener.
abstract void unpack ( InputStream in, JarOutputStream out)
Unpack the specified stream to the specified JAR output stream.
abstract void unpack ( File in, JarOutputStream out)
Unpack the contents of the specified File to the specified JAR output stream.

Constants

public static final String DEFLATE_HINT

Added in API level 1

The String indicating if the unpacker should ignore all transmitted values,can be replaced by either true or false .

Constant Value: "unpack.deflate.hint"

public static final String FALSE

Added in API level 1

a String representation of false .

Constant Value: "false"

public static final String KEEP

Added in API level 1

a String representation of keep .

Constant Value: "keep"

public static final String PROGRESS

Added in API level 1

the progress as a percentage .

Constant Value: "unpack.progress"

public static final String TRUE

Added in API level 1

a String representation of true .

Constant Value: "true"

Public Methods

public abstract void addPropertyChangeListener ( PropertyChangeListener listener)

Added in API level 3

add a listener for PropertyChange events.

Parameters
listener the listener to listen if PropertyChange events occurs.

public abstract SortedMap < String String > properties ()

Added in API level 1

Returns a sorted map of the properties of this unpacker.

Returns
  • the properties of unpacker.

public abstract void removePropertyChangeListener ( PropertyChangeListener listener)

Added in API level 3

remove a listener.

Parameters
listener listener to remove.

public abstract void unpack ( InputStream in, JarOutputStream out)

Added in API level 1

Unpack the specified stream to the specified JAR output stream.

Parameters
in stream to uncompressed.
out JAR output stream of uncompressed data.
Throws
IOException if I/O exception occurs.

public abstract void unpack ( File in, JarOutputStream out)

Added in API level 1

Unpack the contents of the specified File to the specified JAR output stream.

Parameters
in file to be uncompressed.
out JAR output stream of uncompressed data.
Throws
IOException if I/O exception occurs.