public class

PackerImpl

extends Object
implements Pack200.Packer
java.lang.Object
   ↳ com.sun.java.util.jar.pack.PackerImpl

Summary

[Expand]
Inherited Constants
From interface java.util.jar.Pack200.Packer
Public Constructors
PackerImpl()
Constructs a Packer object and sets the initial state of the packer engines.
Public Methods
void addPropertyChangeListener(PropertyChangeListener listener)
Register a listener for changes to options.
void pack(JarFile in, OutputStream out)
Takes a JarFile and converts into a pack-stream.
void pack(JarInputStream in, OutputStream out)
Takes a JarInputStream and converts into a pack-stream.
SortedMap properties()
Get the set of options for the pack and unpack engines.
void removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.jar.Pack200.Packer

Public Constructors

public PackerImpl ()

Constructs a Packer object and sets the initial state of the packer engines.

Public Methods

public void addPropertyChangeListener (PropertyChangeListener listener)

Register a listener for changes to options.

Parameters
listener An object to be invoked when a property is changed.

public void pack (JarFile in, OutputStream out)

Takes a JarFile and converts into a pack-stream.

Closes its input but not its output. (Pack200 archives are appendable.)

Parameters
in a JarFile
out an OutputStream
Throws
IOException if an error is encountered.

public void pack (JarInputStream in, OutputStream out)

Takes a JarInputStream and converts into a pack-stream.

Closes its input but not its output. (Pack200 archives are appendable.)

The modification time and deflation hint attributes are not available, for the jar-manifest file and the directory containing the file.

Parameters
in a JarInputStream
out an OutputStream
Throws
IOException if an error is encountered.
See Also

public SortedMap properties ()

Get the set of options for the pack and unpack engines.

Returns
  • A sorted association of option key strings to option values.

public void removePropertyChangeListener (PropertyChangeListener listener)

Remove a listener for the PropertyChange event.

Parameters
listener The PropertyChange listener to be removed.