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
Adds a listener forPropertyChange
events.Gets a sorted map of the properties of this unpacker.void
Removes a listener.void
unpack
(File in, JarOutputStream out) Unpacks the contents of the specifiedFile
to the specified JAR output stream.void
unpack
(InputStream in, JarOutputStream out) Unpacks 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
Adds a listener forPropertyChange
events.- Parameters:
listener
- the listener to listen ifPropertyChange
events occurs.
-
properties
Gets a sorted map of the properties of this unpacker.- Returns:
- the properties of unpacker.
-
removePropertyChangeListener
Removes a listener.- Parameters:
listener
- listener to remove.
-
unpack
Unpacks the contents of the specifiedFile
to the specified JAR output stream.- Parameters:
in
- file to uncompress.out
- JAR output stream of uncompressed data.- Throws:
IOException
- if I/O exception occurs.
-
unpack
Unpacks the specified stream to the specified JAR output stream.- Parameters:
in
- stream to uncompress, preferably aBoundedInputStream
.out
- JAR output stream of uncompressed data.- Throws:
IOException
- if I/O exception occurs.
-