Package java.util.jar
Interface Pack200.Unpacker
- 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
Fields Modifier and Type Field Description static StringDEFLATE_HINTThe String indicating if the unpacker should ignore all transmitted values,can be replaced by eithertrueorfalse.static StringFALSEa String representation offalse.static StringKEEPa String representation ofkeep.static StringPROGRESSthe progress as apercentage.static StringTRUEa String representation oftrue. -
Method Summary
Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener listener)add a listener forPropertyChangeevents.SortedMap<String,String>properties()Returns a sorted map of the properties of this unpacker.voidremovePropertyChangeListener(PropertyChangeListener listener)remove 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:
- Constant Field Values
-
FALSE
a String representation offalse.- See Also:
- Constant Field Values
-
KEEP
a String representation ofkeep.- See Also:
- Constant Field Values
-
PROGRESS
the progress as apercentage.- See Also:
- Constant Field Values
-
TRUE
a String representation oftrue.- See Also:
- Constant Field Values
-
-
Method Details
-
properties
Returns a sorted map of the properties of this unpacker.- Returns:
- the properties of unpacker.
-
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.
-
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.
-
addPropertyChangeListener
add a listener forPropertyChangeevents.- Parameters:
listener- the listener to listen ifPropertyChangeevents occurs.
-
removePropertyChangeListener
remove a listener.- Parameters:
listener- listener to remove.
-