jautil.install
Class JPIArgumentsUpdater

java.lang.Object
  extended by jautil.install.JPIArgumentsUpdater

public class JPIArgumentsUpdater
extends java.lang.Object

A 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 Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPIArgumentsUpdater

public 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.

Method Detail

getJPIArgs

public java.lang.String getJPIArgs()
Returns the Java Plugin arguments string in force at the time of this 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.


getNewJPIArgs

public 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).


saveAndUpdateJDPFile

public 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.