com.izforge.izpack.installer
Class Unpacker

java.lang.Object
  extended by com.izforge.izpack.installer.UnpackerBase
      extended by com.izforge.izpack.installer.Unpacker
All Implemented Interfaces:
IUnpacker, java.lang.Runnable

public class Unpacker
extends UnpackerBase

Unpacker class.

Author:
Julien Ponge, Johannes Lehtinen

Field Summary
private static java.lang.String tempPath
           
private  java.util.jar.Pack200.Unpacker unpacker
           
 
Fields inherited from class com.izforge.izpack.installer.UnpackerBase
absolute_installpath, ALIVE, discardInterrupt, handler, idata, instances, INTERRUPT, interruptDesired, INTERRUPTED, LANG_FILE_NAME, langpack, result, rules, udata, vs
 
Constructor Summary
Unpacker(AutomatedInstallData idata, AbstractUIProgressHandler handler)
          The constructor.
 
Method Summary
private  java.util.jar.Pack200.Unpacker getPack200Unpacker()
           
private  java.io.InputStream getPackAsStream(java.lang.String packid, boolean uninstall)
          Returns a stream to a pack, location depending on if it's web based.
 void run()
           
 
Methods inherited from class com.izforge.izpack.installer.UnpackerBase
addToInstances, getCustomActions, getResult, getRunningInstances, handleAdditionalUninstallData, informListeners, interruptAll, isDiscardInterrupt, isInterruptDesired, mkDirsWithEnhancement, performInterrupted, performUpdateChecks, putUninstaller, removeFromInstances, setDiscardInterrupt, setRules, writeInstallationInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tempPath

private static final java.lang.String tempPath
See Also:
Constant Field Values

unpacker

private java.util.jar.Pack200.Unpacker unpacker
Constructor Detail

Unpacker

public Unpacker(AutomatedInstallData idata,
                AbstractUIProgressHandler handler)
The constructor.

Parameters:
idata - The installation data.
handler - The installation progress handler.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class UnpackerBase

getPack200Unpacker

private java.util.jar.Pack200.Unpacker getPack200Unpacker()

getPackAsStream

private java.io.InputStream getPackAsStream(java.lang.String packid,
                                            boolean uninstall)
                                     throws java.lang.Exception
Returns a stream to a pack, location depending on if it's web based.

Parameters:
uninstall - true if pack must be uninstalled
Returns:
The stream or null if it could not be found.
Throws:
java.lang.Exception - Description of the Exception