|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.utils.SystemProperties
public class SystemProperties
The Class SystemProperties.
Nested Class Summary | |
---|---|
static class |
SystemProperties.OperatingSystem
Operating Systems Enum. |
Field Summary | |
---|---|
static java.lang.String |
fileSeparator
OS dependent file separator. |
static boolean |
isJava6Update10OrLater
Java 6 Update 10 or later? |
static java.lang.String |
lineTerminator
OS dependent line terminator. |
static SystemProperties.OperatingSystem |
OS
Operating System. |
static java.lang.String |
userHome
User home dir. |
Constructor Summary | |
---|---|
SystemProperties()
|
Method Summary | |
---|---|
static java.io.File |
getFileFromUserConfigFolder(java.lang.String name,
boolean useWorkDir)
Returns file from the user config folder. |
static java.lang.String |
getTempFolder()
Return path to temp folder, which is inside user config folder. |
static java.lang.String |
getUserConfigFolder(boolean useWorkDir)
Gets folder where state is stored. |
static void |
setCustomConfigFolder(java.lang.String customConfigFolder)
Sets the custom config folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String userHome
public static final java.lang.String fileSeparator
public static final java.lang.String lineTerminator
public static final SystemProperties.OperatingSystem OS
public static final boolean isJava6Update10OrLater
Constructor Detail |
---|
public SystemProperties()
Method Detail |
---|
public static java.lang.String getUserConfigFolder(boolean useWorkDir)
useWorkDir
- If the current working directory should be used
public static java.io.File getFileFromUserConfigFolder(java.lang.String name, boolean useWorkDir)
name
- The name of the file (Example: aTunes.log or folder/file.abc)useWorkDir
- If the current working directory should be used
public static void setCustomConfigFolder(java.lang.String customConfigFolder)
customConfigFolder
- the customConfigFolder to setpublic static java.lang.String getTempFolder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |