com.voiceclearly.api.util
Class LoggingConfig

java.lang.Object
  extended by com.voiceclearly.api.util.LoggingConfig

public final class LoggingConfig
extends java.lang.Object


Field Summary
static java.lang.String ARGUMENTS
           
 
Constructor Summary
LoggingConfig()
           
 
Method Summary
protected static java.lang.String getArgumentValue(java.lang.String argumentName)
           
protected static java.io.File getBinDirectory()
           
protected static java.io.File getLogDirectory()
          Returns the log directory.
protected static java.io.File getResourceDirectory()
           
protected static java.lang.String getUserConf()
          Keep track of the users configuration directory.
protected static java.lang.String getUserHome()
           
protected static java.lang.String getVoiceClearlyUserHome()
           
static boolean isLinux()
          Return if we are running on Linux.
static boolean isMac()
          Return if we are running on a mac.
static boolean isVista()
          Returns true if Spark is running on vista.
static boolean isWindows()
          Return if we are running on windows.
protected  void setArgument(java.lang.String arguments)
           
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARGUMENTS

public static java.lang.String ARGUMENTS
Constructor Detail

LoggingConfig

public LoggingConfig()
Method Detail

startup

public void startup()

isWindows

public static boolean isWindows()
Return if we are running on windows.

Returns:
true if we are running on windows, false otherwise.

isVista

public static boolean isVista()
Returns true if Spark is running on vista.

Returns:
true if running on Vista.

isMac

public static boolean isMac()
Return if we are running on a mac.

Returns:
true if we are running on a mac, false otherwise.

getArgumentValue

protected static java.lang.String getArgumentValue(java.lang.String argumentName)
Parameters:
argumentName -
Returns:

setArgument

protected void setArgument(java.lang.String arguments)
Parameters:
arguments -

getBinDirectory

protected static java.io.File getBinDirectory()
Returns:

getResourceDirectory

protected static java.io.File getResourceDirectory()
Returns:

getLogDirectory

protected static java.io.File getLogDirectory()
Returns the log directory. The log directory contains all debugging and error files for Spark.

Returns:
the log directory.

isLinux

public static boolean isLinux()
Return if we are running on Linux.

Returns:
true if we are running on Linux, false otherwise.

getUserConf

protected static java.lang.String getUserConf()
Keep track of the users configuration directory.

Returns:
Directory name depending on Operating System.

getVoiceClearlyUserHome

protected static java.lang.String getVoiceClearlyUserHome()
Returns:

getUserHome

protected static java.lang.String getUserHome()
Returns: