| java.lang.Object net.sf.jftp.system.StringUtils
StringUtils | public class StringUtils (Code) | | |
contains | public static String contains(String[] tmp, String[] str)(Code) | | Used to search for return codes in a string array.
Returns the first one found
|
cutAfter | public static String cutAfter(String str, char c)(Code) | | Returns the rest of a string after a given character
|
cutPath | public static String cutPath(String s)(Code) | | Makes a (path) string shorter to get it displayed correctly
|
getDir | public static String getDir(String tmp)(Code) | | Returns a string representing a relative directory path.
Examples: "/tmp/dir/" -> "dir/" and "/tmp/dir" -> "dir"
|
getFile | public static String getFile(String file)(Code) | | Get a filename out of a full path string
|
isRelative | public static boolean isRelative(String file)(Code) | | |
main | public static void main(String[] argv)(Code) | | Main method containing a few testcases for getFile() / isRelative()
|
removeStart | public static String removeStart(String str, String what)(Code) | | Removes the a string at the beginning of a string
|
string | public static String string(char c)(Code) | | Returns a string representing a given character
|
strstr | public static boolean strstr(String tmp, char str)(Code) | | Returns true if the given string contains the given character
|
|
|