|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.util.Utilities
public final class Utilities
Utility class
Method Summary | |
---|---|
static java.io.File |
resolvePathAsFile(java.lang.String path)
Resolves a path : if path exists, a File
is directly constructed of it. |
static java.lang.String |
resolvePathAsString(java.lang.String path)
Resolves a path : if path exists, it's directly returned. |
static boolean |
saveXML(dioscuri.config.Emulator emuObject,
java.lang.String path)
Saves the settings of an dioscuri.config.Emulator
object to the file denoted by path . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String resolvePathAsString(java.lang.String path)
path
: if path
exists, it's directly returned.
Else, the execution folder of the Dioscuri JAR is prepend to path
and
then the absolute path of that File
is returned
path
- the relative or absolute path of a file
path
(the parameter)Utilities#resolvePathAsFile(String)
public static java.io.File resolvePathAsFile(java.lang.String path)
path
: if path
exists, a File
is directly constructed of it. Else, the execution folder of the Dioscuri JAR is
prepend to path
and then a File
is constructed and returned
path
- the relative or absolute path of a file
path
exists, a File
is directly
constructed of it. Else, the execution folder of the Dioscuri JAR is
prepend to path
and then a File
is directly
constructed and returnedUtilities#resolvePathAsString(String)
public static boolean saveXML(dioscuri.config.Emulator emuObject, java.lang.String path)
dioscuri.config.Emulator
object to the file denoted by path
.
emuObject
- the settings to be savedpath
- the path of the XML config file
true
if the settings from
dioscuri.config.Emulator
are successfully saved in
path
, else false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |