|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.platform.PlatformBase
public abstract class PlatformBase
Utility base class for Platform implementations.
| Field Summary | |
|---|---|
protected String |
colonReplacement
|
protected Logger |
logger
|
protected String |
separatorReplacement
|
protected String |
whitespaceReplacement
|
| Fields inherited from interface info.aduna.platform.Platform |
|---|
APPDATA_BASEDIR_PROPERTY, OLD_DATADIR_PROPERTY |
| Constructor Summary | |
|---|---|
PlatformBase()
|
|
| Method Summary | |
|---|---|
File |
getApplicationDataDir()
Returns the directory in which Aduna applications can store their application-dependent data, returns 'getOSApplicationDataDir' unless the system property "aduna.platform.applicationdata.dir" has been set. |
File |
getApplicationDataDir(String applicationName)
Returns the directory in which a specific application can store all its application-dependent data. |
File |
getOSApplicationDataDir(String applicationName)
Returns the operating system dependend application data dir. |
String |
getRelativeApplicationDataDir(String applicationName)
Get the directory relative to getApplicationDataDir() for the specified application. |
String |
getRelativeApplicationDataDir(String applicationName,
boolean caseSensitive,
boolean replaceWhitespace,
boolean replaceColon)
|
File |
getUserHome()
Returns the directory for the current user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.aduna.platform.Platform |
|---|
dataDirPreserveCase, dataDirReplaceColon, dataDirReplaceWhitespace, getName, getOSApplicationDataDir |
| Field Detail |
|---|
protected final Logger logger
protected String whitespaceReplacement
protected String separatorReplacement
protected String colonReplacement
| Constructor Detail |
|---|
public PlatformBase()
| Method Detail |
|---|
public File getUserHome()
Platform
getUserHome in interface Platformpublic final File getApplicationDataDir()
Platform
getApplicationDataDir in interface Platformpublic final File getApplicationDataDir(String applicationName)
Platform
getApplicationDataDir in interface PlatformapplicationName - the name of the application for which to determine the
directory
Platform.getApplicationDataDir()public final File getOSApplicationDataDir(String applicationName)
Platform
getOSApplicationDataDir in interface Platformpublic String getRelativeApplicationDataDir(String applicationName)
Platform
getRelativeApplicationDataDir in interface PlatformapplicationName - the name of the application
public String getRelativeApplicationDataDir(String applicationName,
boolean caseSensitive,
boolean replaceWhitespace,
boolean replaceColon)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||