to top
Android APIs
Since: 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<StringString> 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

Since: 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

Since: API Level 1

a String representation of false.

Constant Value: "false"

public static final String KEEP

Since: API Level 1

a String representation of keep.

Constant Value: "keep"

public static final String PROGRESS

Since: API Level 1

the progress as a percentage.

Constant Value: "unpack.progress"

public static final String TRUE

Since: API Level 1

a String representation of true.

Constant Value: "true"

Public Methods

public abstract void addPropertyChangeListener (PropertyChangeListener listener)

Since: API Level 3

add a listener for PropertyChange events.

Parameters
listener the listener to listen if PropertyChange events occurs.

public abstract SortedMap<StringString> properties ()

Since: API Level 1

Returns a sorted map of the properties of this unpacker.

Returns
  • the properties of unpacker.

public abstract void removePropertyChangeListener (PropertyChangeListener listener)

Since: API Level 3

remove a listener.

Parameters
listener listener to remove.

public abstract void unpack (InputStream in, JarOutputStream out)

Since: 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)

Since: 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.