|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdd.util.StringUtils
Adds helper functions for dealing with strings. Java's class library is lacking in some important string manipulation methods, provided here.
| Constructor Summary | |
StringUtils()
|
|
| Method Summary | |
static java.lang.String |
capitalize(java.lang.String string)
Capitalizes the first letter of a string. |
static java.lang.Object |
duplicate(java.lang.Object o)
|
static java.lang.String |
encodeUrl(java.lang.String url)
Removes illegal characters from URLs. |
static java.lang.String |
readFile(java.lang.String fileName)
Reads the contents of a file (generally text or html) into a String using a StringBuffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringUtils()
| Method Detail |
public static java.lang.Object duplicate(java.lang.Object o)
public static java.lang.String capitalize(java.lang.String string)
string - String to capitalize
public static java.lang.String readFile(java.lang.String fileName)
fileName - Filename, including path, of the file to read.
public static java.lang.String encodeUrl(java.lang.String url)
url - String to convert to a legal URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||