|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.generationjava.lang.StringW
A set of String library static methods. While extending String or StringBuffer would have been the nicest solution, that is not possible, so a simple set of static methods seems the most workable. Most methods have now gone to Commons Lang StringUtils.
| Constructor Summary | |
StringW()
|
|
| Method Summary | |
static String |
join(Object[] objs,
String sep,
String pre,
String post)
|
static String |
wordWrap(String str)
Create a word-wrapped version of a String. |
static String |
wordWrap(String str,
int width)
Create a word-wrapped version of a String. |
static String |
wordWrap(String str,
int width,
String delim,
String split)
Word-wrap a string. |
static String |
wordWrap(String str,
String width,
String delim,
String split)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringW()
| Method Detail |
public static String join(Object[] objs,
String sep,
String pre,
String post)
public static String wordWrap(String str)
public static String wordWrap(String str,
int width)
public static String wordWrap(String str,
String width,
String delim,
String split)
public static String wordWrap(String str,
int width,
String delim,
String split)
str - String to word-wrapwidth - int to wrap atdelim - String to use to separate linessplit - String to use to split a word greater than width long
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||