|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--com.theorem.ftp.Text
Some text methods.
| Constructor Summary | |
Text()
|
|
| Method Summary | |
static void |
dumpStack()
Dump out the current call stack to stdout. |
static java.lang.String |
format(int n,
int width)
Format a number to the given width, right justfied, blank filled. |
static java.lang.String |
format(long n,
int width)
Format a number to the given width, right justfied, blank filled. |
static java.lang.String |
replace(java.lang.String s,
java.lang.String a,
java.lang.String b)
Replace all occurences of a with b. |
static java.lang.String[] |
split(java.lang.String s)
Split a line into an array based on white space. |
static java.lang.String[] |
split(java.lang.String s,
java.lang.String delim)
Split a line into an array based on the delimiter. |
static java.lang.String |
toHexString(byte[] buf)
Convert a byte buffer to a hex string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Text()
| Method Detail |
public static java.lang.String replace(java.lang.String s,
java.lang.String a,
java.lang.String b)
s - original string.a - string to change.b - replacement string.public static java.lang.String[] split(java.lang.String s)
s - String to split
public static java.lang.String[] split(java.lang.String s,
java.lang.String delim)
s - String to splitdelim - list of delimiterspublic static java.lang.String toHexString(byte[] buf)
buf - Byte array.public static void dumpStack()
public static java.lang.String format(int n,
int width)
n - Number to format.width - Width of spaces + number.
public static java.lang.String format(long n,
int width)
n - Number to format.width - Width of spaces + number.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||