| java.util.jar.Pack200.Packer |
The interface defining the API for converting a JAR file to an output stream in the Pack200 format.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | CLASS_ATTRIBUTE_PFX | the format of a class attribute name. | |||||||||
| String | CODE_ATTRIBUTE_PFX | the format of a code attribute name. | |||||||||
| String | DEFLATE_HINT | the deflation hint to set in the output archive. | |||||||||
| String | EFFORT | the indicated amount of effort to use in compressing the archive. | |||||||||
| String | ERROR | a String representation for error. | |||||||||
| String | FALSE | a String representation of false. | |||||||||
| String | FIELD_ATTRIBUTE_PFX | the format of a field attribute name. | |||||||||
| String | KEEP | a String representation for keep. | |||||||||
| String | KEEP_FILE_ORDER | decide if all elements shall transmit in their original order. | |||||||||
| String | LATEST | a String representation for latest. | |||||||||
| String | METHOD_ATTRIBUTE_PFX | the format of a method attribute name. | |||||||||
| String | MODIFICATION_TIME | if it shall attempt to determine the latest modification time if this
is set to LATEST. | |||||||||
| String | PASS | a String representation of pass. | |||||||||
| String | PASS_FILE_PFX | the file that will not be compressed. | |||||||||
| String | PROGRESS | packer progress as a percentage. | |||||||||
| String | SEGMENT_LIMIT | The number of bytes of each archive segment. | |||||||||
| String | STRIP | a String representation of strip. | |||||||||
| String | TRUE | a String representation of true. | |||||||||
| String | UNKNOWN_ATTRIBUTE | the action to take if an unknown attribute is encountered. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
add a listener for PropertyChange events
| |||||||||||
Pack the specified JAR file to the specified output stream.
| |||||||||||
Pack the data from the specified jar input stream to the specified
output stream.
| |||||||||||
Returns a sorted map of the properties of this packer.
| |||||||||||
remove a listener
| |||||||||||
the format of a class attribute name.
the format of a code attribute name.
the deflation hint to set in the output archive.
the indicated amount of effort to use in compressing the archive.
a String representation for error.
a String representation of false.
the format of a field attribute name.
a String representation for keep.
decide if all elements shall transmit in their original order.
a String representation for latest.
the format of a method attribute name.
if it shall attempt to determine the latest modification time if this
is set to LATEST.
a String representation of pass.
the file that will not be compressed.
packer progress as a percentage.
The number of bytes of each archive segment.
a String representation of strip.
a String representation of true.
the action to take if an unknown attribute is encountered.
add a listener for PropertyChange events
| listener | the listener to listen if PropertyChange events occurs |
|---|
Pack the specified JAR file to the specified output stream.
| in | JAR file to be compressed. |
|---|---|
| out | stream of compressed data. |
| IOException | if I/O exception occurs. |
|---|
Pack the data from the specified jar input stream to the specified output stream.
| in | stream of uncompressed JAR data. |
|---|---|
| out | stream of compressed data. |
| IOException | if I/O exception occurs. |
|---|
Returns a sorted map of the properties of this packer.
remove a listener
| listener | listener to remove |
|---|