|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.backtrack.util.Strings
public class Strings
A tool for string manipulation.
Red (tfeng) |
Red (tfeng) |
Constructor Summary | |
---|---|
Strings()
|
Method Summary | |
---|---|
static java.lang.String[] |
combineArrays(java.lang.String[] array1,
java.lang.String[] array2)
Combine two arrays and return the result of their combination. |
static java.lang.String[] |
decodeFileNames(java.lang.String encode)
Decode a string encoded with file names (or directory names) in it. |
static java.lang.String |
encodeFileNames(java.lang.String[] fileNames)
Encode file names (or directory names) in to a string. |
static java.net.URL[] |
stringsToUrls(java.lang.String[] strings)
Convert an array of strings to an array of URL s with
File.toURL() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Strings()
Method Detail |
---|
public static java.lang.String[] combineArrays(java.lang.String[] array1, java.lang.String[] array2)
array1
- The first array.array2
- The second array.
public static java.lang.String[] decodeFileNames(java.lang.String encode)
File.pathSeparator
) or a new line character.
encode
- The string with file names encoded in it.
encodeFileNames(String[])
public static java.lang.String encodeFileNames(java.lang.String[] fileNames)
File.pathSeparator
).
fileNames
- The array of file names.
decodeFileNames(String)
public static java.net.URL[] stringsToUrls(java.lang.String[] strings) throws java.net.MalformedURLException
URL
s with
File.toURL()
.
strings
- The array of strings.
java.net.MalformedURLException
- If a string is not a proper URL.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |