|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--utils.ptplot5_2.ptolemy.gui.GUIStringUtilities
A collection of utilities for manipulating strings.
In theory, these methods should be in
ptolemy.kernel.util.StringUtilities
, but ptolemy.gui gets shipped
without StringUtilities, so we include them here.
Method Summary | |
static java.lang.String |
abbreviate(java.lang.String longName)
Abbreviate a string. |
static java.lang.String |
split(java.lang.String longName)
If the string is longer than 80 characters, split it up by displaying adding newlines every 80 characters. |
static java.lang.String[] |
tokenizeForExec(java.lang.String inputString)
Tokenize a String to an array of Strings for use with Runtime.exec(String []). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String abbreviate(java.lang.String longName)
split(String longName)
public static java.lang.String split(java.lang.String longName)
longName
- The string to optionally split up
abbreviate(java.lang.String)
public static java.lang.String[] tokenizeForExec(java.lang.String inputString) throws java.io.IOException
Lines that begin with an octothorpe '#' are ignored. Substrings that start and end with a double quote are considered to be a single token and are returned as a single array element.
inputString
- The String to tokenize
java.io.IOException
- Thrown if StreamTokenizer.nextToken() throws it.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |