API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.jar. Pack200.Packer View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Pack200.Packer
Subinterfaces
Description
publicstatic interface Pack200.Packer
  The packer engine applies various transformations to the input JAR file, making the pack stream highly compressible by a compressor such as gzip or zip.
See also:   
Methods
Hide/Show inherited methods
public void addPropertyChangeListener (PropertyChangeListener listener)
  Registers a listener for PropertyChange events on the properties map.
public void pack (JarFile in, OutputStream out) throws IOException
  Takes a JarFile and converts it into a Pack200 archive.
public void pack (JarInputStream in, OutputStream out) throws IOException
  Takes a JarInputStream and converts it into a Pack200 archive.
public SortedMap<String, String> properties ()
  Get the set of this engine's properties.
public void removePropertyChangeListener (PropertyChangeListener listener)
  Remove a listener for PropertyChange events, added by the Pack200.Packer.addPropertyChangeListener(java.beans.PropertyChangeListener).
Fields
Hide/Show inherited fields
publicfinalstatic String CLASS_ATTRIBUTE_PFX = "pack.class.attribute."
  When concatenated with a class attribute name, indicates the format of that attribute, using the layout language specified in the JSR 200 specification.
publicfinalstatic String CODE_ATTRIBUTE_PFX = "pack.code.attribute."
  When concatenated with a code attribute name, indicates the format of that attribute.
publicfinalstatic String DEFLATE_HINT = "pack.deflate.hint"
  If this property is set to Pack200.Packer.TRUE or Pack200.Packer.FALSE, the packer will set the deflation hint accordingly in the output archive, and will not transmit the individual deflation hints of archive elements.
publicfinalstatic String EFFORT = "pack.effort"
  If this property is set to a single decimal digit, the packer will use the indicated amount of effort in compressing the archive.
publicfinalstatic String ERROR = "error"
  The string "error", a possible value for certain properties.
publicfinalstatic String FALSE = "false"
  The string "false", a possible value for certain properties.
publicfinalstatic String FIELD_ATTRIBUTE_PFX = "pack.field.attribute."
  When concatenated with a field attribute name, indicates the format of that attribute.
publicfinalstatic String KEEP = "keep"
  The string "keep", a possible value for certain properties.
publicfinalstatic String KEEP_FILE_ORDER = "pack.keep.file.order"
  If this property is set to Pack200.Packer.TRUE, the packer will transmit all elements in their original order within the source archive.
publicfinalstatic String LATEST = "latest"
  The string "latest", a possible value for certain properties.
publicfinalstatic String METHOD_ATTRIBUTE_PFX = "pack.method.attribute."
  When concatenated with a method attribute name, indicates the format of that attribute.
publicfinalstatic String MODIFICATION_TIME = "pack.modification.time"
  If this property is set to the special string Pack200.Packer.LATEST, the packer will attempt to determine the latest modification time, among all the available entries in the original archive or the latest modification time of all the available entries in each segment.
publicfinalstatic String PASS = "pass"
  The string "pass", a possible value for certain properties.
publicfinalstatic String PASS_FILE_PFX = "pack.pass.file."
  Indicates that a file should be passed through bytewise, with no compression.
publicfinalstatic String PROGRESS = "pack.progress"
  The unpacker's progress as a percentage, as periodically updated by the unpacker.
publicfinalstatic String SEGMENT_LIMIT = "pack.segment.limit"
  This property is a numeral giving the estimated target size N (in bytes) of each archive segment.
publicfinalstatic String STRIP = "strip"
  The string "strip", a possible value for certain properties.
publicfinalstatic String TRUE = "true"
  The string "true", a possible value for certain properties.
publicfinalstatic String UNKNOWN_ATTRIBUTE = "pack.unknown.attribute"
  Indicates the action to take when a class-file containing an unknown attribute is encountered.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar