public class JPIArgumentsUpdater
extends java.lang.Object
JPIArgumentsUpdater
allows the Java Plugin arguments
to be updated. These are the arguments controlling the JRE used
to run applets in a web browser.Constructor and Description |
---|
JPIArgumentsUpdater(java.lang.String libpath,
int szmb,
java.lang.String duppistr)
Constructs a new JPIArgumentsUpdater instance, using the given
updating values for the library path entry, the initial memory
size in MB, and the duplicate path indicator string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJPIArgs()
Returns the Java Plugin arguments string in force at the time of
this
JPIArgumentsUpdater 's creation. |
java.lang.String |
getNewJPIArgs()
Returns the new Java Plugin arguments string established by this
JPIArgumentsUpdater , or returns null if the new
string is unchanged from the original one (or if the original
string itself is undetermined). |
boolean |
saveAndUpdateJDPFile()
Creates an updated Java Deployment Properties file, saves a copy
of the current file, and then replaces it with the updated
version, returning a flag indicating whether the update has been
completed successfully.
|
public JPIArgumentsUpdater(java.lang.String libpath, int szmb, java.lang.String duppistr)
public java.lang.String getJPIArgs()
JPIArgumentsUpdater
's creation.
A null
return value indicates that this updater is
unable for one reason or another to determine the initial
arguments string.
The empty string string may be returned, indicating simply
that the initial list of deployment arguments is empty.public java.lang.String getNewJPIArgs()
JPIArgumentsUpdater
, or returns null
if the new
string is unchanged from the original one (or if the original
string itself is undetermined).public boolean saveAndUpdateJDPFile()