public static interface Pack200.Unpacker
Modifier and Type | Field and Description |
---|---|
static String |
DEFLATE_HINT
The String indicating if the unpacker should ignore all transmitted
values,can be replaced by either
true or false . |
static String |
FALSE
a String representation of
false . |
static String |
KEEP
a String representation of
keep . |
static String |
PROGRESS
the progress as a
percentage . |
static String |
TRUE
a String representation of
true . |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
add a listener for
PropertyChange events. |
SortedMap<String,String> |
properties()
Returns a sorted map of the properties of this unpacker.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
remove a listener.
|
void |
unpack(File in,
JarOutputStream out)
Unpack the contents of the specified
File to the specified
JAR output stream. |
void |
unpack(InputStream in,
JarOutputStream out)
Unpack the specified stream to the specified JAR output stream.
|
static final String DEFLATE_HINT
true
or false
.static final String FALSE
false
.static final String KEEP
keep
.static final String PROGRESS
percentage
.static final String TRUE
true
.void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChange
events.listener
- the listener to listen if PropertyChange
events
occurs.SortedMap<String,String> properties()
void removePropertyChangeListener(PropertyChangeListener listener)
listener
- listener to remove.void unpack(File in, JarOutputStream out) throws IOException
File
to the specified
JAR output stream.in
- file to be uncompressed.out
- JAR output stream of uncompressed data.IOException
- if I/O exception occurs.void unpack(InputStream in, JarOutputStream out) throws IOException
in
- stream to uncompressed.out
- JAR output stream of uncompressed data.IOException
- if I/O exception occurs.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.