public class UpdateChecker
extends java.lang.Object
In order to use this class in your application, please include resource/i4jruntime.jar
from your
install4j installation into your class path. You do not need to distribute this file
along with your application, install4j will do this automatically for you.
UpdateDescriptor
Constructor and Description |
---|
UpdateChecker() |
Modifier and Type | Method and Description |
---|---|
static UpdateDescriptor |
getUpdateDescriptor(java.lang.String urlSpec,
ApplicationDisplayMode displayMode)
Convenience method for
getUpdateDescriptor(UpdateCheckRequest) . |
static UpdateDescriptor |
getUpdateDescriptor(java.lang.String urlSpec,
ApplicationDisplayMode displayMode,
ErrorHandlingCallback errorHandlingCallback)
Convenience method for
getUpdateDescriptor(UpdateCheckRequest) . |
static UpdateDescriptor |
getUpdateDescriptor(UpdateCheckRequest updateCheckRequest)
Download an
updates.xml file programatically from a given URL and returns an
UpdateDescriptor instance. |
public static UpdateDescriptor getUpdateDescriptor(java.lang.String urlSpec, ApplicationDisplayMode displayMode) throws UserCanceledException, java.io.IOException
getUpdateDescriptor(UpdateCheckRequest)
.urlSpec
- see UpdateCheckRequest.urlSpec(String)
displayMode
- see UpdateCheckRequest.applicationDisplayMode(ApplicationDisplayMode)
UserCanceledException
- if the user cancels the proxy dialogjava.io.IOException
- if the download failspublic static UpdateDescriptor getUpdateDescriptor(java.lang.String urlSpec, ApplicationDisplayMode displayMode, ErrorHandlingCallback errorHandlingCallback) throws UserCanceledException, java.io.IOException
getUpdateDescriptor(UpdateCheckRequest)
.urlSpec
- see UpdateCheckRequest.urlSpec(String)
displayMode
- see UpdateCheckRequest.applicationDisplayMode(ApplicationDisplayMode)
errorHandlingCallback
- see UpdateCheckRequest.errorHandlingCallback(ErrorHandlingCallback)
UserCanceledException
- if the user cancels the proxy dialogjava.io.IOException
- if the download failspublic static UpdateDescriptor getUpdateDescriptor(UpdateCheckRequest updateCheckRequest) throws UserCanceledException, java.io.IOException
updates.xml
file programatically from a given URL and returns an
UpdateDescriptor
instance. The UpdateCheckRequest
specifies the URL and other connection options.updateCheckRequest
- the update check requestUserCanceledException
- if the user cancels the proxy dialogjava.io.IOException
- if the download fails