de.intarsys.tools.installresource
Class InstallFile

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

public class InstallFile
extends Install

An abstraction to access a file to be deployed along with the application via the class loader.

The file is searched in the class loader with getResourceAsStream(x) where x is one of

where example, with NativeCode("foo", "bar.dll") on a Windows Vista machine you will search for:


Field Summary
 
Fields inherited from class de.intarsys.tools.installresource.Install
classLoader, files, name, path
 
Constructor Summary
InstallFile(java.lang.String path, java.lang.String name, boolean platformDependent)
           
 
Method Summary
protected  java.io.File loadURL(java.net.URL url)
           
 
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

InstallFile

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

loadURL

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