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 TypeMethodDescriptionvoidAdds a listener forPropertyChangeevents.Gets a sorted map of the properties of this unpacker.voidRemoves a listener.voidunpack(File in, JarOutputStream out) Unpacks the contents of the specifiedFileto the specified JAR output stream.voidunpack(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 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
Adds a listener forPropertyChangeevents.- Parameters:
listener- the listener to listen ifPropertyChangeevents 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 specifiedFileto 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.
-