Pack200.Packer and Pack200.Unpacker .
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Pack200.Packer
The interface defining the API for converting a JAR file to an output stream in the Pack200 format. |
| public static interface | Pack200.Unpacker
The interface defining the API for converting a packed stream in the Pack200 format to a JAR file. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | SYSTEM_PROPERTY_PACKER
System property key. |
| private static final String | SYSTEM_PROPERTY_UNPACKER
System property key. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Object | |
| public static Pack200. | |
| public static Pack200. |
| SYSTEM_PROPERTY_PACKER | back to summary |
|---|---|
| private static final String SYSTEM_PROPERTY_PACKER System property key. | |
| SYSTEM_PROPERTY_UNPACKER | back to summary |
|---|---|
| private static final String SYSTEM_PROPERTY_UNPACKER System property key. | |
| Pack200 | back to summary |
|---|---|
| private Pack200() Prevents this class from being instantiated. | |
| newInstance | back to summary |
|---|---|
| pack-priv static Object newInstance(final String systemProperty, final String defaultClassName) | |
| newPacker | back to summary |
|---|---|
| public static Pack200. Returns a new instance of a packer engine.
The implementation of the packer engine is defined by the system property | |
| newUnpacker | back to summary |
|---|---|
| public static Pack200. Returns a new instance of an unpacker engine.
The implementation of the unpacker engine is defined by the system property
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CLASS_ATTRIBUTE_PFX
The format of a class attribute name. |
| public static final String | CODE_ATTRIBUTE_PFX
The format of a code attribute name. |
| public static final String | DEFLATE_HINT
The deflation hint to set in the output archive. |
| public static final String | EFFORT
The indicated amount of effort to use in compressing the archive. |
| public static final String | ERROR
a String representation for |
| public static final String | FALSE
a String representation of |
| public static final String | FIELD_ATTRIBUTE_PFX
The format of a field attribute name. |
| public static final String | KEEP
The String representation for |
| public static final String | KEEP_FILE_ORDER
Decide if all elements shall transmit in their original order. |
| public static final String | LATEST
The String representation for |
| public static final String | METHOD_ATTRIBUTE_PFX
The format of a method attribute name. |
| public static final String | MODIFICATION_TIME
If it shall attempt to determine the latest modification time if this is set to |
| public static final String | PASS
The String representation of |
| public static final String | PASS_FILE_PFX
The file that will not be compressed. |
| public static final String | PROGRESS
Packer progress as a percentage. |
| public static final String | SEGMENT_LIMIT
The number of bytes of each archive segment. |
| public static final String | STRIP
The String representation of |
| public static final String | TRUE
The String representation of |
| public static final String | UNKNOWN_ATTRIBUTE
The action to take if an unknown attribute is encountered. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(PropertyChangeListener
the listener to listen if PropertyChange events occurs listener)Adds a listener for PropertyChange events |
| public void | pack(JarFile
JAR file to be compressed. in, OutputStream stream of compressed data. out)Packs the specified JAR file to the specified output stream. |
| public void | pack(JarInputStream
stream of uncompressed JAR data. in, OutputStream stream of compressed data. out)Packs the data from the specified jar input stream to the specified output stream. |
| public SortedMap | Returns: the properties of the packer.Gets a sorted map of the properties of this packer. |
| public void |
| CLASS_ATTRIBUTE_PFX | back to summary |
|---|---|
| public static final String CLASS_ATTRIBUTE_PFX The format of a class attribute name. | |
| CODE_ATTRIBUTE_PFX | back to summary |
|---|---|
| public static final String CODE_ATTRIBUTE_PFX The format of a code attribute name. | |
| DEFLATE_HINT | back to summary |
|---|---|
| public static final String DEFLATE_HINT The deflation hint to set in the output archive. | |
| EFFORT | back to summary |
|---|---|
| public static final String EFFORT The indicated amount of effort to use in compressing the archive. | |
| ERROR | back to summary |
|---|---|
| public static final String ERROR a String representation for | |
| FALSE | back to summary |
|---|---|
| public static final String FALSE a String representation of | |
| FIELD_ATTRIBUTE_PFX | back to summary |
|---|---|
| public static final String FIELD_ATTRIBUTE_PFX The format of a field attribute name. | |
| KEEP | back to summary |
|---|---|
| public static final String KEEP The String representation for | |
| KEEP_FILE_ORDER | back to summary |
|---|---|
| public static final String KEEP_FILE_ORDER Decide if all elements shall transmit in their original order. | |
| LATEST | back to summary |
|---|---|
| public static final String LATEST The String representation for | |
| METHOD_ATTRIBUTE_PFX | back to summary |
|---|---|
| public static final String METHOD_ATTRIBUTE_PFX The format of a method attribute name. | |
| MODIFICATION_TIME | back to summary |
|---|---|
| public static final String MODIFICATION_TIME If it shall attempt to determine the latest modification time if this is set to | |
| PASS | back to summary |
|---|---|
| public static final String PASS The String representation of | |
| PASS_FILE_PFX | back to summary |
|---|---|
| public static final String PASS_FILE_PFX The file that will not be compressed. | |
| PROGRESS | back to summary |
|---|---|
| public static final String PROGRESS Packer progress as a percentage. | |
| SEGMENT_LIMIT | back to summary |
|---|---|
| public static final String SEGMENT_LIMIT The number of bytes of each archive segment. | |
| STRIP | back to summary |
|---|---|
| public static final String STRIP The String representation of | |
| TRUE | back to summary |
|---|---|
| public static final String TRUE The String representation of | |
| UNKNOWN_ATTRIBUTE | back to summary |
|---|---|
| public static final String UNKNOWN_ATTRIBUTE The action to take if an unknown attribute is encountered. | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Adds a listener for PropertyChange events
| |
| pack | back to summary |
|---|---|
| public void pack(JarFile in, OutputStream out) throws IOException Packs the specified JAR file to the specified output stream.
| |
| pack | back to summary |
|---|---|
| public void pack(JarInputStream in, OutputStream out) throws IOException Packs the data from the specified jar input stream to the specified output stream.
| |
| properties | back to summary |
|---|---|
| public SortedMap Gets a sorted map of the properties of this packer. | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Removes a listener
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFLATE_HINT
The String indicating if the unpacker should ignore all transmitted values, can be replaced by either |
| public static final String | FALSE
a String representation of |
| public static final String | KEEP
a String representation of |
| public static final String | PROGRESS
The progress as a |
| public static final String | TRUE
a String representation of |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(PropertyChangeListener
the listener to listen if listener)PropertyChange events occurs.Adds a listener for |
| public SortedMap | Returns: the properties of unpacker.Gets a sorted map of the properties of this unpacker. |
| public void | |
| public void | unpack(File
file to uncompress. in, JarOutputStream JAR output stream of uncompressed data. out)Unpacks the contents of the specified |
| public void | unpack(InputStream
stream to uncompress, preferably a in, JarOutputStream BoundedInputStream.JAR output stream of uncompressed data. out)Unpacks the specified stream to the specified JAR output stream. |
| DEFLATE_HINT | back to summary |
|---|---|
| public static final String DEFLATE_HINT The String indicating if the unpacker should ignore all transmitted values, can be replaced by either | |
| FALSE | back to summary |
|---|---|
| public static final String FALSE a String representation of | |
| KEEP | back to summary |
|---|---|
| public static final String KEEP a String representation of | |
| PROGRESS | back to summary |
|---|---|
| public static final String PROGRESS The progress as a | |
| TRUE | back to summary |
|---|---|
| public static final String TRUE a String representation of | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Adds a listener for
| |
| properties | back to summary |
|---|---|
| public SortedMap Gets a sorted map of the properties of this unpacker. | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Removes a listener.
| |
| unpack | back to summary |
|---|---|
| public void unpack(File in, JarOutputStream out) throws IOException Unpacks the contents of the specified
| |
| unpack | back to summary |
|---|---|
| public void unpack(InputStream in, JarOutputStream out) throws IOException Unpacks the specified stream to the specified JAR output stream.
| |