de.intarsys.tools.installresource
Class InstallZip

java.lang.Object
  extended by de.intarsys.tools.installresource.Install
      extended by de.intarsys.tools.installresource.InstallZip

public class InstallZip
extends Install

An abstraction to access a directory structure to be deployed along with the application via the class loader. Initially a ZIP file is searched. The ZIP is expanded to a temporary directory.


Field Summary
 
Fields inherited from class de.intarsys.tools.installresource.Install
classLoader, files, name, path
 
Constructor Summary
InstallZip(java.lang.String path, java.lang.String name, boolean platformDependent)
           
 
Method Summary
protected  void loadEntry(java.io.File parent, java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry entry)
           
protected  java.io.File loadURL(java.net.URL url)
           
protected  void loadZip(java.io.File zip, java.io.File parent)
           
 
Methods inherited from class de.intarsys.tools.installresource.Install
copy, createPlatformFallbackId, createPlatformId, delete, deleteOnExit, find, getClassLoader, getFile, getFiles, getName, getPath, getPlatformDefaultId, getPlatformFallbackId, getPlatformId, getResourceNameDefault, getResourceNameFallback, getResourceNameFull, getResourceNamePlain, isPlatformDependent, load, loadAll, open, prefix, setClassLoader, setPlatformFallbackId, setPlatformId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallZip

public InstallZip(java.lang.String path,
                  java.lang.String name,
                  boolean platformDependent)
Method Detail

loadEntry

protected void loadEntry(java.io.File parent,
                         java.util.zip.ZipFile zipFile,
                         java.util.zip.ZipEntry entry)
                  throws java.io.IOException,
                         java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

loadURL

protected java.io.File loadURL(java.net.URL url)
                        throws java.io.IOException
Specified by:
loadURL in class Install
Throws:
java.io.IOException

loadZip

protected void loadZip(java.io.File zip,
                       java.io.File parent)
                throws java.util.zip.ZipException,
                       java.io.IOException
Throws:
java.util.zip.ZipException
java.io.IOException