|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.util.io.PathResolver
public class PathResolver
This class provides resolving of directory variables like %userhome%, %imagepath%, %installpath%
| Method Summary | |
|---|---|
String |
encode(String path)
Encodes the path with the variables if possible |
String |
getConfigDirectory()
Gets the config directory of the application. |
String |
getDataDirectory()
Gets the data directory of the application. |
String |
getImageDirectory()
Gets the image directory of the application. |
String |
getInstallDirectory()
Gets the install directory of the application. |
static PathResolver |
getInstance()
Gets an instance of the PathResolver without runtime dependency. |
static PathResolver |
getInstance(IRuntime runtime)
Gets an instance of the PathResolver depending on the runtime. |
String |
getLibDirectory()
Gets the lib directory of the application. |
String |
getLogDirectory()
Gets the log directory of the application. |
String |
getPhotoDirectory()
Gets the central photo directory of the application. |
String |
getTempDirectory()
Gets the temporary directory. |
String |
getUserhomeDirectory()
Gets the userhome directory. |
void |
initialize()
Initializes the path variables. |
String |
resolve(String path)
Resolves the path to a valid String obejct. |
String |
toFilePath(String filename,
boolean create)
Transforms a file string into an OS compliant filename string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PathResolver getInstance(IRuntime runtime)
runtime - the current runtime.
public static PathResolver getInstance()
runtime - the current runtime.
public void initialize()
public String resolve(String path)
public String encode(String path)
path - path to encode
public String getInstallDirectory()
public String getLibDirectory()
public String getImageDirectory()
public String getUserhomeDirectory()
public String getTempDirectory()
public String getDataDirectory()
public String getConfigDirectory()
public String getPhotoDirectory()
public String getLogDirectory()
public String toFilePath(String filename,
boolean create)
filename - a filename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||