|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.raelity.text.TextUtil
public class TextUtil
Some convenient functions when working with text. This class is not meant to be instantiated, its methods are all static.
Nested Class Summary | |
---|---|
static class |
TextUtil.MySegment
To support jdk1.5, need a segment that isa CharSequence. |
Constructor Summary | |
---|---|
TextUtil()
|
Method Summary | |
---|---|
static String |
debugString(String s)
replace control characters with something visible, only handle \n for now. |
static Vector |
split(String s)
Split a string into a vector of words. |
static Vector |
split(String s,
String separators)
Split a string into a vector of words, using separarators to delineate the words. |
static String |
toString(CharacterIterator ci)
|
static String |
toString(CharacterIterator ci,
int index,
int len)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextUtil()
Method Detail |
---|
public static Vector split(String s)
public static Vector split(String s, String separators)
public static String toString(CharacterIterator ci)
public static String toString(CharacterIterator ci, int index, int len)
public static String debugString(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |