|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.common.Environment
public final class Environment
Class with some convenience methods for getting information about the environment.
Method Summary | |
---|---|
static Properties |
getBuildProperties()
Provides the build properties. |
static File |
getExamplesDirectory()
Returns the local directory that contains the test files. |
static File |
getSandbox()
Returns the directory that is the root of the local sandbox, for example, "D:/u/user/foray/trunk/foray". |
static File |
getTestDirectory()
Returns the local directory that contains the test files. |
static boolean |
isGraphicalEnvironment()
Determines whether this environment can support graphical functions that are required for system fonts, Batik (SVG processing), and other AWT-dependent systems. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isGraphicalEnvironment()
GraphicsEnvironment.isHeadless()
.
Some environments that are not headless, i.e. that support a mouse,
keyboard, and display, are nevertheless not graphical. A Unix/Linux
terminal is a good example.
public static Properties getBuildProperties() throws IOException
IOException
- If, for any reason, the build properties file is not
found or cannot be parsed into a Properties instance.public static File getSandbox() throws IOException
IOException
- For errors obtaining the build properties.public static File getTestDirectory() throws IOException
IOException
- For errors obtaining the build properties.public static File getExamplesDirectory() throws IOException
IOException
- For errors obtaining the build properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |