de.intarsys.tools.installresource
Class InstallFile
java.lang.Object
de.intarsys.tools.installresource.Install
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
- [path]/[os.name]-[os.arch]/[filename]
- [path]/[os.short name]-[os.arch]/[filename]
- [path]/default/[filename]
where
- [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
example, with NativeCode("foo", "bar.dll") on a Windows Vista machine you
will search for:
- foo/windows vista-x86/bar.dll
- foo/windows-x86/bar.dll
- foo/default/bar.dll
Methods inherited from class de.intarsys.tools.installresource.Install |
delete, getClassLoader, getFile, getFiles, getName, getPath, getPlatformDefaultId, getPlatformFallbackId, getPlatformId, isPlatformDependent, load, loadAll, setClassLoader, setPlatformFallbackId, setPlatformId |
InstallFile
public InstallFile(String path,
String name,
boolean platformDependent)
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.