Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Pack200.Unpacker

public static interface Pack200.Unpacker

java.util.jar.Pack200.Unpacker


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

DEFLATE_HINT

Added in API level 1
String DEFLATE_HINT

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

Constant Value: "unpack.deflate.hint"

FALSE

Added in API level 1
String FALSE

a String representation of false.

Constant Value: "false"

KEEP

Added in API level 1
String KEEP

a String representation of keep.

Constant Value: "keep"

PROGRESS

Added in API level 1
String PROGRESS

the progress as a percentage.

Constant Value: "unpack.progress"

TRUE

Added in API level 1
String TRUE

a String representation of true.

Constant Value: "true"

Public methods

addPropertyChangeListener

Added in API level 3
void addPropertyChangeListener (PropertyChangeListener listener)

add a listener for PropertyChange events.

Parameters
listener PropertyChangeListener: the listener to listen if PropertyChange events occurs.

properties

Added in API level 1
SortedMap<StringString> properties ()

Returns a sorted map of the properties of this unpacker.

Returns
SortedMap<StringString> the properties of unpacker.

removePropertyChangeListener

Added in API level 3
void removePropertyChangeListener (PropertyChangeListener listener)

remove a listener.

Parameters
listener PropertyChangeListener: listener to remove.

unpack

Added in API level 1
void unpack (InputStream in, 
                JarOutputStream out)

Unpack the specified stream to the specified JAR output stream.

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

unpack

Added in API level 1
void unpack (File in, 
                JarOutputStream out)

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

Parameters
in File: file to be uncompressed.
out JarOutputStream: JAR output stream of uncompressed data.
Throws
IOException if I/O exception occurs.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.