public static interface Pack200.Packer
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_ATTRIBUTE_PFX
the format of a class attribute name.
|
static String |
CODE_ATTRIBUTE_PFX
the format of a code attribute name.
|
static String |
DEFLATE_HINT
the deflation hint to set in the output archive.
|
static String |
EFFORT
the indicated amount of effort to use in compressing the archive.
|
static String |
ERROR
a String representation for
error. |
static String |
FALSE
a String representation of
false. |
static String |
FIELD_ATTRIBUTE_PFX
the format of a field attribute name.
|
static String |
KEEP
a String representation for
keep. |
static String |
KEEP_FILE_ORDER
decide if all elements shall transmit in their original order.
|
static String |
LATEST
a String representation for
latest. |
static String |
METHOD_ATTRIBUTE_PFX
the format of a method attribute name.
|
static String |
MODIFICATION_TIME
if it shall attempt to determine the latest modification time if this
is set to
LATEST. |
static String |
PASS
a String representation of
pass. |
static String |
PASS_FILE_PFX
the file that will not be compressed.
|
static String |
PROGRESS
packer progress as a percentage.
|
static String |
SEGMENT_LIMIT
The number of bytes of each archive segment.
|
static String |
STRIP
a String representation of
strip. |
static String |
TRUE
a String representation of
true. |
static String |
UNKNOWN_ATTRIBUTE
the action to take if an unknown attribute is encountered.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
add a listener for PropertyChange events
|
void |
pack(JarFile in,
OutputStream out)
Pack the specified JAR file to the specified output stream.
|
void |
pack(JarInputStream in,
OutputStream out)
Pack the data from the specified jar input stream to the specified
output stream.
|
SortedMap<String,String> |
properties()
Returns a sorted map of the properties of this packer.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
remove a listener
|
static final String CLASS_ATTRIBUTE_PFX
static final String CODE_ATTRIBUTE_PFX
static final String DEFLATE_HINT
static final String EFFORT
static final String ERROR
error.static final String FALSE
false.static final String FIELD_ATTRIBUTE_PFX
static final String KEEP
keep.static final String KEEP_FILE_ORDER
static final String LATEST
latest.static final String METHOD_ATTRIBUTE_PFX
static final String MODIFICATION_TIME
LATEST.static final String PASS
pass.static final String PASS_FILE_PFX
static final String PROGRESS
static final String SEGMENT_LIMIT
static final String STRIP
strip.static final String TRUE
true.static final String UNKNOWN_ATTRIBUTE
SortedMap<String,String> properties()
void pack(JarFile in, OutputStream out) throws IOException
in - JAR file to be compressed.out - stream of compressed data.IOException - if I/O exception occurs.void pack(JarInputStream in, OutputStream out) throws IOException
in - stream of uncompressed JAR data.out - stream of compressed data.IOException - if I/O exception occurs.void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listener to listen if PropertyChange events occursvoid removePropertyChangeListener(PropertyChangeListener listener)
listener - listener to removeCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.