|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.util.StringUtils
JDK 1.4-compatible String utilities class.
Method Summary | |
static java.lang.String |
concat(java.util.List lines)
Prints a list of lines to a StringBuffer. |
static void |
main(java.lang.String[] args)
Testing functions. |
static java.util.ArrayList |
readLines(java.lang.String path)
Reads a text file into a list of lines. |
static int[] |
splitDate(java.lang.String date)
Splits a date in the format "MM/DD/YYYY" or "MM-DD-YYYY" into an array of 3 ints (m, d, y). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int[] splitDate(java.lang.String date)
date
- a date string
java.lang.IllegalArgumentException
- if the date format is invalidpublic static java.lang.String concat(java.util.List lines)
public static java.util.ArrayList readLines(java.lang.String path)
path
- the absolute path to the file
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |