com.objex.panywhere.utils
Class FileUtils
java.lang.Object
com.objex.panywhere.utils.FileUtils
public class FileUtils
- extends java.lang.Object
|
Method Summary |
static boolean |
checkValidationGrammer(java.io.File a_xml_file)
Utility function used internally by the ProgenyAnywhere control to determine whether an XML file includes the element as the first line of the file. |
static boolean |
checkValidationGrammerForFileName(java.lang.String as_xml_filename)
Utility function used internally by the ProgenyAnywhere control to determine whether an XML file includes the element as the first line of the file. |
static boolean |
checkValidationGrammerForString(java.lang.String as_xml_string)
Utility function used internally by the ProgenyAnywhere control to determine whether an XML file includes the element as the first line of the string. |
static java.lang.String |
getProgenyProperty(java.lang.String property,
java.lang.String as_def_value)
|
static java.util.Properties |
loadINI()
|
static void |
setProgenyProperty(java.lang.String property,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
checkValidationGrammer
public static boolean checkValidationGrammer(java.io.File a_xml_file)
- Utility function used internally by the ProgenyAnywhere control to determine whether an XML file includes the element as the first line of the file.
If it is, the the XML document import must be validated against the DTD that is referenced by the DTD element.
- Parameters:
a_xml_file - The XML file being read.
- Returns:
- TRUE if the is the first line in the XML file. FALSE otherwise
checkValidationGrammerForFileName
public static boolean checkValidationGrammerForFileName(java.lang.String as_xml_filename)
- Utility function used internally by the ProgenyAnywhere control to determine whether an XML file includes the element as the first line of the file.
If it is, the the XML document import must be validated against the DTD that is referenced by the DTD element.
- Parameters:
as_xml_filename - The name of the XML file to be imported.
- Returns:
- TRUE if the is the first line in the XML file. FALSE otherwise
checkValidationGrammerForString
public static boolean checkValidationGrammerForString(java.lang.String as_xml_string)
- Utility function used internally by the ProgenyAnywhere control to determine whether an XML file includes the element as the first line of the string.
If it is, the the XML document import must be validated against the DTD that is referenced by the DTD element.
- Parameters:
as_xml_string - The XML string being imported
- Returns:
- TRUE if the is the first line in the XML string. FALSE otherwise
setProgenyProperty
public static void setProgenyProperty(java.lang.String property,
java.lang.String value)
getProgenyProperty
public static java.lang.String getProgenyProperty(java.lang.String property,
java.lang.String as_def_value)
loadINI
public static java.util.Properties loadINI()