Package com.zerog.ia.api.pub
Interface ResourceAccess
-
- All Known Implementing Classes:
CustomCodeConsoleProxy
,CustomCodePanelProxy
,InstallerProxy
,UninstallerProxy
public interface ResourceAccess
An interface for accessing resources in user JARs or ZIPs built into installers and uninstallers by the "Custom Code Action" and "Custom Code Panel" in the Advanced Action Pack.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URL
getResource(java.lang.String archivePath)
Returns an instance of java.net.URL that refers to a resource located in the user's ZIP or JAR.java.io.File
getTempDirectory()
Returns a temporary directory.java.io.File
saveURLContentToFile(java.net.URL url)
Stores the contents of the given URL to a temporary file and returns an instance of java.io.File that refers to it.
-
-
-
Method Detail
-
getResource
java.net.URL getResource(java.lang.String archivePath)
Returns an instance of java.net.URL that refers to a resource located in the user's ZIP or JAR.- Parameters:
archivePath
- a forward-slash delimited path relative to the root of the user's archive. For example "com/acme/picture.gif".
-
getTempDirectory
java.io.File getTempDirectory() throws java.io.IOException
Returns a temporary directory. InstallAnywhere will delete it at the completion of the installer or uninstaller.- Throws:
java.io.IOException
-
saveURLContentToFile
java.io.File saveURLContentToFile(java.net.URL url) throws java.io.IOException
Stores the contents of the given URL to a temporary file and returns an instance of java.io.File that refers to it.- Throws:
java.io.IOException
-
-