public class StringUtil extends Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
concat(Object[] objects)
Takes a list of objects and concatenates the toString() representation of
each object and returns the result.
|
static String |
fill(char c,
int length)
Creates a string of length "length" composed of the character "c", or the
null string if c <= 0.
|
static String |
remove(String original,
String search)
Return a String with all occurrences of the "search" String within
"original" removed.
|
static String |
replace(String original,
String from,
String to)
Return a String with all occurrences of the "from" String within
"original" replaced with the "to" String.
|
static String |
toJava(String mimeCharset) |
static String |
toMIME(String encoding) |
public static String replace(String original, String from, String to)
original - the original Stringfrom - the String to replace within "original"to - the String to replace "from" withpublic static String remove(String original, String search)
original - the original Stringsearch - the String to be removedpublic static String concat(Object[] objects)
objects - an array of objectspublic static String fill(char c, int length)
length - the length of the returned stringc - the character is solely consists ofJas4pp 1.5 © Java Analysis Studio for Particle Physics