public class Strings
extends java.lang.Object
Constructor and Description |
---|
Strings() |
Modifier and Type | Method and Description |
---|---|
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() . |
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.