creamtec.core
Class Utilities

java.lang.Object
  extended by creamtec.core.Utilities

public class Utilities
extends java.lang.Object

Contains various helper methods


Field Summary
static java.lang.String CREAMTEC_ROOT
           
 
Method Summary
static java.lang.String getConfDir()
          Returns the path to the configuration directory, which is called "conf" and is located under root directory
static java.lang.String getConfFullPath(java.lang.String fileName)
          Returns the full path to a given file starting from the configuration directory
static java.lang.String getFullPath(java.lang.String fileName)
          Returns the full path to a given file starting from the root directory
static java.lang.String getRootDir()
          Returns the home directory specified via creamtec.home JVM property
static void setRootDir(java.lang.String dir)
          Can be used to provide the directory where the property file is located
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREAMTEC_ROOT

public static final java.lang.String CREAMTEC_ROOT
See Also:
Constant Field Values
Method Detail

getRootDir

public static java.lang.String getRootDir()
Returns the home directory specified via creamtec.home JVM property

Returns:
root directory

getConfDir

public static java.lang.String getConfDir()
Returns the path to the configuration directory, which is called "conf" and is located under root directory

Returns:
configuration directory

getFullPath

public static java.lang.String getFullPath(java.lang.String fileName)
Returns the full path to a given file starting from the root directory

Parameters:
fileName - file name
Returns:
full directory path

getConfFullPath

public static java.lang.String getConfFullPath(java.lang.String fileName)
Returns the full path to a given file starting from the configuration directory

Parameters:
fileName - file name
Returns:
full directory path

setRootDir

public static void setRootDir(java.lang.String dir)
Can be used to provide the directory where the property file is located



Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.