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
FieldsModifier and TypeFieldDescriptionstatic final StringThe String indicating if the unpacker should ignore all transmitted values, can be replaced by eithertrueorfalse.static final Stringa String representation offalse.static final Stringa String representation ofkeep.static final Stringthe progress as apercentage.static final Stringa String representation oftrue. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a listener forPropertyChangeevents.Returns a sorted map of the properties of this unpacker.voidremove a listener.voidunpack(File in, JarOutputStream out) Unpack the contents of the specifiedFileto the specified JAR output stream.voidunpack(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 eithertrueorfalse.- 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 forPropertyChangeevents.- Parameters:
listener- the listener to listen ifPropertyChangeevents 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 specifiedFileto 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.
-