|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.Tokenizer
public class Tokenizer
Utility class to help with tokenizing strings.
Method Summary | |
---|---|
static String[] |
tokenizeLines(String text)
Splits a string up into lines, separated by semicolons or newlines. |
static String[] |
tokenizeWords(String line)
Chops up a line of text into tokens. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String[] tokenizeLines(String text) throws uk.ac.starlink.task.UsageException
text
- input string
uk.ac.starlink.task.UsageException
public static String[] tokenizeWords(String line) throws uk.ac.starlink.task.UsageException
line
- line of text
line
uk.ac.starlink.task.UsageException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |