public final class IfsConfigDirectory
extends java.lang.Object
fndext.configDir
or by two system properties: fndext.home
and fndext.instance
in the following way.
${fndext.home}/instance/${fndext.instance}/conf
Methods in this class throw IOExecptions, which are not reported to
IFS Logging framework (this class does not depend on ifs.fnd.log package).Modifier and Type | Method and Description |
---|---|
static boolean |
fileExists(java.lang.String fileName)
Checks if a file exists in the IFS configuration directory.
|
static java.io.File |
getDirectory()
Gets IFS configuration directory.
|
static boolean |
isDefined()
Checks if the IFS configuration directory is defined.
|
static java.io.InputStream |
openInputStream(java.lang.String fileName)
Opens a configuration file located in the IFS configuration directory.
|
static java.io.Reader |
openReader(java.lang.String fileName)
Opens a configuration file located in the IFS configuration directory.
|
public static boolean isDefined()
fndext.configDir
or the system properties
fndext.home
and fndext.instance
point to an existing directory, false otherwisegetDirectory()
public static boolean fileExists(java.lang.String fileName)
fileName
- the name of the file to checkpublic static java.io.File getDirectory() throws java.io.FileNotFoundException
fndext.configDir
or the system properties fndext.home
and fndext.instance
.java.io.FileNotFoundException
- if IFS configuration directory is not defined,
which may depend on missing or invalid system properties fndext.configDir
or fndext.home
and fndext.instance
isDefined()
public static java.io.InputStream openInputStream(java.lang.String fileName) throws java.io.IOException
fileName
- the name of the configuration file (without path information)java.io.IOException
- if the IFS configuration directory is not defined or an I/O error occurspublic static java.io.Reader openReader(java.lang.String fileName) throws java.io.IOException
fileName
- the name of the configuration file (without path information)java.io.IOException
- if the IFS configuration directory is not defined or an I/O error occurs