Interface Pack200.Unpacker
- All Known Implementing Classes:
Pack200UnpackerAdapter
- Enclosing class:
- Pack200
public static interface Pack200.Unpacker
The interface defining the API for converting a packed stream in the
Pack200 format to a JAR file.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The String indicating if the unpacker should ignore all transmitted values, can be replaced by eithertrue
orfalse
.static final String
a String representation offalse
.static final String
a String representation ofkeep
.static final String
the progress as apercentage
.static final String
a String representation oftrue
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a listener forPropertyChange
events.Returns a sorted map of the properties of this unpacker.void
remove a listener.void
unpack
(File in, JarOutputStream out) Unpack the contents of the specifiedFile
to the specified JAR output stream.void
unpack
(InputStream in, JarOutputStream out) Unpack the specified stream to the specified JAR output stream.
-
Field Details
-
DEFLATE_HINT
The String indicating if the unpacker should ignore all transmitted values, can be replaced by eithertrue
orfalse
.- See Also:
-
FALSE
a String representation offalse
.- See Also:
-
KEEP
a String representation ofkeep
.- See Also:
-
PROGRESS
the progress as apercentage
.- See Also:
-
TRUE
a String representation oftrue
.- See Also:
-
-
Method Details
-
addPropertyChangeListener
add a listener forPropertyChange
events.- Parameters:
listener
- the listener to listen ifPropertyChange
events occurs.
-
properties
Returns a sorted map of the properties of this unpacker.- Returns:
- the properties of unpacker.
-
removePropertyChangeListener
remove a listener.- Parameters:
listener
- listener to remove.
-
unpack
Unpack the contents of the specifiedFile
to the specified JAR output stream.- Parameters:
in
- file to be uncompressed.out
- JAR output stream of uncompressed data.- Throws:
IOException
- if I/O exception occurs.
-
unpack
Unpack the specified stream to the specified JAR output stream.- Parameters:
in
- stream to uncompressed.out
- JAR output stream of uncompressed data.- Throws:
IOException
- if I/O exception occurs.
-