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