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 ClassLoader
protected File[]
protected final String
protected final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected static String
protected static String
boolean
delete()
Delete the temporary installation.protected static void
deleteOnExit
(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 String
static String
static String
protected String
getResourceNameDefault
(String name) protected String
protected String
getResourceNameFull
(String name) protected String
getResourceNamePlain
(String name) boolean
load()
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 File
protected Enumeration<URL>
protected String
void
setClassLoader
(ClassLoader classLoader) static void
setPlatformFallbackId
(String value) static void
setPlatformId
(String value)
-
Field Details
-
name
-
path
-
files
-
classLoader
-
-
Constructor Details
-
Install
-
-
Method Details
-
copy
- Throws:
IOException
FileNotFoundException
-
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:
true
if 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
-