public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
endsWith(java.lang.String[] result,
java.lang.String... args)
given a parseFileName array ["x","y","z","q","r"],
endsWith returns true if its 2nd argument matches the postfix
of the input array; ex args = ["q","r"] will return true;
see UtilsTest for examples
|
static java.lang.String[] |
parseFileName(java.lang.String filename)
a file filename is "x#y#z.q.r", where # denotes a windows (\) or unix
(/) directory marker, and "." denotes the usual "dot" in file names
This method returns a string array of a parsed file; in this
case it would return ["x","y","z","q","r"].
|
public static java.lang.String[] parseFileName(java.lang.String filename)
filename
- -- name of file to examinepublic static boolean endsWith(java.lang.String[] result, java.lang.String... args)
result
- -- string array produced by parseFileNameargs
- -- a list of strings to match with the end of result