|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jdmk.DefaultPaths
This class represents a set of default directories used by Java DMK.
Method Summary | |
static java.lang.String |
getEtcDir()
Returns the etc directory for Java DMK. |
static java.lang.String |
getEtcDir(java.lang.String dirname)
Returns the etc directory for Java DMK concatenated with dirname. |
static java.lang.String |
getInstallDir()
Returns the installation directory for Java DMK. |
static java.lang.String |
getInstallDir(java.lang.String dirname)
Returns the installation directory for Java DMK concatenated with dirname. |
static java.lang.String |
getTmpDir()
Returns the tmp directory for the product. |
static java.lang.String |
getTmpDir(java.lang.String dirname)
Returns the tmp directory for Java DMK concatenated with dirname. |
static void |
setEtcDir(java.lang.String dirname)
Sets the etc directory for Java DMK. |
static void |
setInstallDir(java.lang.String dirname)
Sets the installation directory for Java DMK. |
static void |
setTmpDir(java.lang.String dirname)
Sets the tmp directory for the product |
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 getInstallDir()
<base_dir> + File.separator + SUNWjdmk + File.separator + jdmk4.2 + File.separator + 1.2
or,
System.getProperty("user.dir")
if the JDMK installation directory could not be derived from the CLASSPATH
.
public static java.lang.String getInstallDir(java.lang.String dirname)
<base_dir> + File.separator + SUNWjdmk + File.separator + jdmk4.2 + File.separator + 1.2
or,
System.getProperty("user.dir")
if the JDMK installation directory could not be derived from the CLASSPATH
.
dirname
- The directory to be appended.File.separator
+ dirname
.public static void setInstallDir(java.lang.String dirname)
dirname
- The directory where Java DMK resides.public static java.lang.String getEtcDir()
etc
directory for Java DMK.
The default value of the etc
directory is:
DefaultPaths.getInstallDir("etc")
.
etc
directory.public static java.lang.String getEtcDir(java.lang.String dirname)
etc
directory for Java DMK concatenated with dirname.
The default value of the etc
directory is:
DefaultPaths.getInstallDir("etc")
.
dirname
- The directory to be appended.etc
directory + File.separator
+ dirname
.public static void setEtcDir(java.lang.String dirname)
etc
directory for Java DMK.dirname
- The etc
directory for Java DMK.public static java.lang.String getTmpDir()
tmp
directory for the product.
The default value of the tmp
directory is:
DefaultPaths.getInstallDir("tmp")
.
tmp
directory.public static java.lang.String getTmpDir(java.lang.String dirname)
tmp
directory for Java DMK concatenated with dirname.
The default value of the tmp
directory is:
DefaultPaths.getInstallDir("tmp")
.
dirname
- The directory to be appended.tmp
directory + File.separator
+ dirname
.public static void setTmpDir(java.lang.String dirname)
tmp
directory for the productdirname
- The tmp
directory for Java DMK.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |