Class Install
java.lang.Object
de.intarsys.tools.installresource.Install
- Direct Known Subclasses:
InstallFile,InstallFileList,InstallZip
Abstract superclass for implementing the resource installation behavior.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassLoaderprotected File[]protected final Stringprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidprotected static Stringprotected static Stringbooleandelete()Delete the temporary installation.protected static voiddeleteOnExit(File file) Make file and all descendents subject to delete.protected Enumeration<URL> Find all URL's to a specific resource.getFile()File[]getFiles()getName()getPath()static Stringstatic Stringstatic Stringprotected StringgetResourceNameDefault(String name) protected Stringprotected StringgetResourceNameFull(String name) protected StringgetResourceNamePlain(String name) booleanload()Load the first occurrence of the designated target from the classloader.File[]loadAll()Load all occurrences of the designated target from the classloader.protected abstract Fileprotected Enumeration<URL> protected StringvoidsetClassLoader(ClassLoader classLoader) static voidsetPlatformFallbackId(String value) static voidsetPlatformId(String value)
-
Field Details
-
name
-
path
-
files
-
classLoader
-
-
Constructor Details
-
Install
-
-
Method Details
-
copy
- Throws:
IOExceptionFileNotFoundException
-
createPlatformFallbackId
-
createPlatformId
-
deleteOnExit
Make file and all descendents subject to delete.- Parameters:
file-
-
getPlatformDefaultId
-
getPlatformFallbackId
-
getPlatformId
-
setPlatformFallbackId
-
setPlatformId
-
delete
public boolean delete()Delete the temporary installation.- Returns:
trueif all artifacts are deleted.
-
find
Find all URL's to a specific resource.- Parameters:
name-- Returns:
-
getClassLoader
-
getFile
-
getFiles
-
getName
-
getPath
-
getResourceNameDefault
-
getResourceNameFallback
-
getResourceNameFull
-
getResourceNamePlain
-
isPlatformDependent
public boolean isPlatformDependent() -
load
Load the first occurrence of the designated target from the classloader.- Returns:
- Load the first occurrence of the designated target from the classloader.
- Throws:
IOException
-
loadAll
Load all occurrences of the designated target from the classloader.- Returns:
- Load all occurrences of the designated target from the classloader.
- Throws:
IOException
-
loadURL
- Throws:
IOException
-
open
- Throws:
IOException
-
prefix
-
setClassLoader
-