|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.util.StringUtil
A collection of string utility functions.
Constructor Summary | |
StringUtil()
|
Method Summary | |
static String |
fillup(double d,
int digits,
int decimals)
|
static String |
fillupLeft(int n,
int newlen)
|
static String |
fillupLeft(int n,
int newlen,
char fillChar)
|
static String |
fillupLeft(String s,
int newlen)
|
static String |
fillupLeft(String s,
int newlen,
char fillchar)
|
static String |
fillupRight(int n,
int newlen)
|
static String |
fillupRight(String s,
int newlen)
|
static String |
fillupRight(String s,
int newlen,
char fillchar)
|
static String[] |
getArray(Vector strings)
|
static byte[] |
getBytes(String s)
|
static String |
getClassName(Class c)
Return the unqualififed name of a class. |
static String[] |
getStrackTrace(Throwable exception)
Get the stack trace of the Throwable as an array of strings. |
static String |
replace(String s,
String oldStr,
String newStr)
|
static String |
replaceSubstring(int begin,
String oldString,
String newSubstring)
|
static String |
replicate(int x,
char c)
|
static String[] |
split(String s,
int length)
|
static String[] |
split(String s,
String separator)
|
static String |
startLowerCase(String s)
Return a string which starts with an lowercase character. |
static String |
startUpperCase(String s)
Return a string which starts with an uppercase character. |
static String |
trimLeft(String s)
|
static String |
trimRight(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtil()
Method Detail |
public static final String replace(String s, String oldStr, String newStr)
public static String fillupRight(String s, int newlen, char fillchar)
public static String fillupRight(String s, int newlen)
public static String fillupRight(int n, int newlen)
public static String fillupLeft(String s, int newlen, char fillchar)
public static String fillupLeft(String s, int newlen)
public static String fillupLeft(int n, int newlen)
public static String fillupLeft(int n, int newlen, char fillChar)
public static String fillup(double d, int digits, int decimals)
public static String replicate(int x, char c)
public static String replaceSubstring(int begin, String oldString, String newSubstring)
public static String trimLeft(String s)
public static String trimRight(String s)
public static String[] split(String s, String separator)
public static String[] split(String s, int length)
public static byte[] getBytes(String s)
public static String[] getArray(Vector strings)
public static String getClassName(Class c)
public static String[] getStrackTrace(Throwable exception)
public static String startLowerCase(String s)
public static String startUpperCase(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |