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

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

a String representation of false.

Constant Value: "false"

public static final String KEEP

a String representation of keep.

Constant Value: "keep"

public static final String PROGRESS

the progress as a percentage.

Constant Value: "unpack.progress"

public static final String TRUE

a String representation of true.

Constant Value: "true"

Public Methods

public abstract void addPropertyChangeListener (PropertyChangeListener listener)

add a listener for PropertyChange events.

Parameters
listener the listener to listen if PropertyChange events occurs.

public abstract SortedMap<StringString> properties ()

Returns a sorted map of the properties of this unpacker.

Returns
  • the properties of unpacker.

public abstract void removePropertyChangeListener (PropertyChangeListener listener)

remove a listener.

Parameters
listener listener to remove.

public abstract void unpack (InputStream in, JarOutputStream out)

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)

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.