|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.moss.util.OperatingSystemUtil
public class OperatingSystemUtil
| Constructor Summary | |
|---|---|
OperatingSystemUtil()
|
|
| Method Summary | |
|---|---|
static java.io.File |
getHomeDirectory()
|
static java.io.File |
getLogFile(java.lang.String programName,
java.lang.String fileName)
Returns the user's log folder on the current OS. |
static java.io.File |
getPicturesFolder()
Return the Pictures folder for the OS. |
static java.io.File |
getProgramsFolder(java.lang.String programName)
Returns the location of the standard location for programs. |
static java.io.File |
getUserFile(java.lang.String programName,
java.lang.String fileName)
Returns the file with the given name, in the correct user folder for the current OS and given program name. |
static java.io.File |
getUserFolder(java.lang.String programName)
Returns the user folder for the given operating system. |
static boolean |
isMac()
Is the program being run on a Macintosh? |
static boolean |
isMacAqua()
Returns true iff the program is being run on a Mac, and one of either Aqua or Quaqua look and feels are being used. |
static java.lang.Boolean |
isWindows()
Is the program being run on Windows? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperatingSystemUtil()
| Method Detail |
|---|
public static boolean isMacAqua()
public static boolean isMac()
true if program is being run on a Mac, false otherwise.public static java.lang.Boolean isWindows()
true if program is being run on Windows, false otherwise.
public static java.io.File getUserFile(java.lang.String programName,
java.lang.String fileName)
programName - fileName -
public static java.io.File getProgramsFolder(java.lang.String programName)
programName -
public static java.io.File getUserFolder(java.lang.String programName)
programName - fileName -
public static java.io.File getHomeDirectory()
public static java.io.File getPicturesFolder()
public static java.io.File getLogFile(java.lang.String programName,
java.lang.String fileName)
programName - fileName -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||