|
copyright The Portico Project 2008. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.portico.shared.FileUtilities
public class FileUtilities
| Constructor Summary | |
|---|---|
FileUtilities()
|
|
| Method Summary | |
|---|---|
static File |
getRidFile()
This method firstly checks the environment variable RTI_RID_FILE for the location of the RID file. |
static boolean |
isXMLFile(String theFile)
Returns whether this file is an XML file. |
static void |
loadPropertiesFile(String theFile)
Loads the specified properties file and sets all properties contained within as System properties, overriding any values for previously set keys. |
private static InputStream |
openFile(String theFile)
Attempts to open the specified file using a two stage process: 1. checks the file system for the file 2. uses the resource locator to check the classpath/jar files for the file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtilities()
| Method Detail |
|---|
private static InputStream openFile(String theFile)
throws FileNotFoundException,
IOException
FileNotFoundException
IOException
public static boolean isXMLFile(String theFile)
throws FileNotFoundException,
IOException
theFile - An object of type File representing the file to perform the check on
FileNotFoundException
IOException
public static void loadPropertiesFile(String theFile)
throws FileNotFoundException,
IOException
propertiesFile - An object of type file representing the properties file to load
FileNotFoundException
IOExceptionpublic static File getRidFile()
PorticoConstants.DEFAULT_RTI_RID is checked. If the file exists and can be
read then that file is returned.
If both paths lead to nothing, then null is returned.
PorticoConstants.DEFAULT_RTI_RID then null is returned
|
copyright The Portico Project 2008. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||