org.jconfig.utils
Class ConfigurationUtils
java.lang.Object
|
+--org.jconfig.utils.ConfigurationUtils
- public class ConfigurationUtils
- extends java.lang.Object
- Author:
- Andreas Mecky, Terry Dye
This class contains some helper methods.
Method Summary |
static java.lang.String |
getConfigProperty(java.lang.String name)
|
static java.lang.String |
getConfigProperty(java.lang.String name,
java.lang.String defaultValue)
|
static java.io.File |
getFile(java.lang.String filename)
Method getFile. |
static java.io.File |
getFileFromInputStream(java.lang.String fileName)
This method tries to get the file for a given fileName
by trying to find it in the classpath. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFileFromInputStream
public static java.io.File getFileFromInputStream(java.lang.String fileName)
- This method tries to get the file for a given fileName
by trying to find it in the classpath.
- Parameters:
fileName
- The name of the file- Returns:
- a file or NULL
getFile
public static java.io.File getFile(java.lang.String filename)
throws java.io.IOException
- Method getFile.
- Parameters:
filename
- - Returns:
- File
- Throws:
java.io.IOException
-
getConfigProperty
public static java.lang.String getConfigProperty(java.lang.String name)
getConfigProperty
public static java.lang.String getConfigProperty(java.lang.String name,
java.lang.String defaultValue)
Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.