JavaXT
|
|||||
ConfigFile ClassUsed to access and save configuration information to an encrypted JSON file.
ConstructorsPublic MethodsgetConfig( String username, String password ) returns JSONObject Used to decrypt and parse a config file (json document). save( JSONObject config, String username, String password ) returns void Used to encrypt and save the config file. Static MethodsgetFile( String path, javaxt.io.File jarFile ) returns javaxt.io.File Returns a File for a given path
updateDir( String key, JSONObject config, javaxt.io.File configFile, boolean create ) returns void Used to update a path to a directory defined in a config file. Resolves both canonical and relative paths (relative to the configFile). updateFile( String key, JSONObject config, javaxt.io.File configFile ) returns void Used to update a path to a file defined in a config file. Resolves both canonical and relative paths (relative to the configFile). |