| java.lang.Object org.cougaar.tools.csmart.util.FileParseUtil
FileParseUtil | public class FileParseUtil (Code) | | FileParseUtil.java
Created: Wed Mar 13 09:45:18 2002
|
Method Summary | |
final public static boolean | containsPattern(String filename, String pattern) Searches the given file for the specified regular expression
pattern. | final public static boolean | isOldStyleIni(String filename) Tests the ini file to determine if it is a New ini.dat style, or
an older ini.dat style. | public static void | main(String args) |
FileParseUtil | public FileParseUtil()(Code) | | |
containsPattern | final public static boolean containsPattern(String filename, String pattern)(Code) | | Searches the given file for the specified regular expression
pattern. Returns true or false based on the result of the find.
Parameters: filename - - The file to search for regex. Parameters: pattern - - Regular Expression pattern to search for. boolean indicating the result of the search. |
isOldStyleIni | final public static boolean isOldStyleIni(String filename)(Code) | | Tests the ini file to determine if it is a New ini.dat style, or
an older ini.dat style. The old ini.dat style contains a
[UniqueId] which does not exist in the newer style.
There are other differences, but this difference is the first and
is the easiest to check existence of.
Parameters: filename - - The file to determine if old or new style. |
|
|