JavaXT
|
|||||
ConfigFile ClassUsed to access and save configuration information stored in a JSON file. Provides an option to encrypt the JSON file.
ConstructorsPublic MethodsgetConfig( String username, String password ) returns JSONObject Used to decrypt and parse a config file (json document). save( String username, String password ) returns void Used to encrypt and save the config file. save( JSONObject config, String username, String password ) returns void Used to encrypt and save the config file. updateDir( String key, boolean create ) returns void Used to update a path to a directory defined in the config file. Resolves both canonical and relative paths (relative to the configFile). updateDir( String key, JSONObject config, boolean create ) returns void Used to update a path to a directory defined in a given config. Resolves both canonical and relative paths (relative to the configFile). updateFile( String key ) returns void Used to update a path to a file defined in the config file. Resolves both canonical and relative paths (relative to the configFile). updateFile( String key, JSONObject config ) returns void Used to update a path to a file defined a given config. Resolves both canonical and relative paths (relative to the configFile). Static MethodsupdateDir( String key, JSONObject config, javaxt.io.File configFile, boolean create ) returns void Used to update a path to a directory defined in a given config. 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. Resolves both canonical and relative paths (relative to a configFile). getFile( String path, javaxt.io.File file ) returns javaxt.io.File Returns a File for a given path. Resolves both canonical and relative paths (relative to the given file).
|