ccs.utils
Class RootDir
java.lang.Object
ccs.utils.RootDir
public class RootDir
- extends java.lang.Object
There is a traditional problem for an app to work out where it's external
resource files are - or for that matter, where it is itself! Different OS's
have different solutions, but a Java app must be cross-platform. We prescribe
a fixed "root directory" for all CP-compatible apps, and all resources are
either a) in a fixed location under that directory, or b) in CDB's which are
accessed by asking CP for them.
CP apps should obtain the root dir by asking this class for it.
Method Summary |
static java.io.File |
locate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootDir
public RootDir()
locate
public static java.io.File locate()