Interface Pack200.Unpacker
- 
- Enclosing class:
 - Pack200
 
public static interface Pack200.UnpackerThe 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 java.lang.StringDEFLATE_HINTThe String indicating if the unpacker should ignore all transmitted values,can be replaced by eithertrueorfalse.static java.lang.StringFALSEa String representation offalse.static java.lang.StringKEEPa String representation ofkeep.static java.lang.StringPROGRESSthe progress as apercentage.static java.lang.StringTRUEa String representation oftrue. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)add a listener forPropertyChangeevents.java.util.SortedMap<java.lang.String,java.lang.String>properties()Returns a sorted map of the properties of this unpacker.voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)remove a listener.voidunpack(java.io.File in, java.util.jar.JarOutputStream out)Unpack the contents of the specifiedFileto the specified JAR output stream.voidunpack(java.io.InputStream in, java.util.jar.JarOutputStream out)Unpack the specified stream to the specified JAR output stream. 
 - 
 
- 
- 
Field Detail
- 
DEFLATE_HINT
static final java.lang.String DEFLATE_HINT
The String indicating if the unpacker should ignore all transmitted values,can be replaced by eithertrueorfalse.- See Also:
 - Constant Field Values
 
 
- 
FALSE
static final java.lang.String FALSE
a String representation offalse.- See Also:
 - Constant Field Values
 
 
- 
KEEP
static final java.lang.String KEEP
a String representation ofkeep.- See Also:
 - Constant Field Values
 
 
- 
PROGRESS
static final java.lang.String PROGRESS
the progress as apercentage.- See Also:
 - Constant Field Values
 
 
- 
TRUE
static final java.lang.String TRUE
a String representation oftrue.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
properties
java.util.SortedMap<java.lang.String,java.lang.String> properties()
Returns a sorted map of the properties of this unpacker.- Returns:
 - the properties of unpacker.
 
 
- 
unpack
void unpack(java.io.InputStream in, java.util.jar.JarOutputStream out) throws java.io.IOExceptionUnpack the specified stream to the specified JAR output stream.- Parameters:
 in- stream to uncompressed.out- JAR output stream of uncompressed data.- Throws:
 java.io.IOException- if I/O exception occurs.
 
- 
unpack
void unpack(java.io.File in, java.util.jar.JarOutputStream out) throws java.io.IOExceptionUnpack the contents of the specifiedFileto the specified JAR output stream.- Parameters:
 in- file to be uncompressed.out- JAR output stream of uncompressed data.- Throws:
 java.io.IOException- if I/O exception occurs.
 
- 
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
add a listener forPropertyChangeevents.- Parameters:
 listener- the listener to listen ifPropertyChangeevents occurs.
 
- 
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
remove a listener.- Parameters:
 listener- listener to remove.
 
 - 
 
 -