Class InstallFile
java.lang.Object
de.intarsys.tools.installresource.Install
de.intarsys.tools.installresource.InstallFile
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
- [path]/[os.name]-[os.arch]/[filename]
- [path]/[os.short name]-[os.arch]/[filename]
- [path]/default/[filename]
- [path] is a path prefix defined upon object creation
- [os.name] is the System property os.name in lowercase
- [os.short name] is derived from the System property os.name by using the beginning up to the first whitespace in lowercase
- [os.arch] is the System property os.arch in lowercase
- [filename] is the name defined upon object creation
- foo/windows vista-x86/bar.dll
- foo/windows-x86/bar.dll
- foo/default/bar.dll
-
Field Summary
Fields inherited from class de.intarsys.tools.installresource.Install
classLoader, files, name, path
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
InstallFile
-
-
Method Details
-
loadURL
- Specified by:
loadURL
in classInstall
- Throws:
IOException
-