|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockftpserver.core.util.StringUtil
public class StringUtil
Contains static String-related utility methods.
| Method Summary | |
|---|---|
static String |
join(Collection parts,
String delimiter)
Join the Strings within the parts Collection, inserting the delimiter in between elements |
static String |
padLeft(String string,
int width)
Pad the specified String with spaces to the left to the specified width. |
static String |
padRight(String string,
int width)
Pad the specified String with spaces to the right to the specified width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String padRight(String string,
int width)
string - - the String to padwidth - - the target width
public static String padLeft(String string,
int width)
string - - the String to padwidth - - the target width
public static String join(Collection parts,
String delimiter)
parts - - the Collection of Strings to joindelimiter - - the delimiter String to insert between the parts
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||