|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pz.platypus.utilities.TextTransforms
public class TextTransforms
Miscellaneous routines for manipulating text in various ways
| Constructor Summary | |
|---|---|
TextTransforms()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
charArrayToString(char[] chars)
converts a char[] to a string. |
static java.lang.String |
charArrayToString(char[] chars,
int start,
int end)
converts part (or all) of a char[] to a string. |
static java.lang.String |
lop(java.lang.String text,
int count)
Truncates count number of bytes from the front (left end) of a string |
static java.lang.String |
replaceSubstringAtLocation(java.lang.String baseString,
java.lang.String oldSubstring,
java.lang.String newSubstring,
int startPoint)
Replace a substring at a specific location in a String with a new substring. |
static java.lang.String |
truncate(java.lang.String text,
int count)
Truncates count number of bytes from the back (right end) of a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextTransforms()
| Method Detail |
|---|
public static java.lang.String charArrayToString(char[] chars)
chars - the char array
public static java.lang.String charArrayToString(char[] chars,
int start,
int end)
chars - the char arraystart - starting pointend - ending point
public static java.lang.String replaceSubstringAtLocation(java.lang.String baseString,
java.lang.String oldSubstring,
java.lang.String newSubstring,
int startPoint)
baseString - the basic string in which the substitutions are madeoldSubstring - the substring to be replacednewSubstring - the replacement substringstartPoint - location of the substing
public static java.lang.String truncate(java.lang.String text,
int count)
text - the string to truncatecount - how much to truncate
public static java.lang.String lop(java.lang.String text,
int count)
text - the string to truncatecount - how much to truncate
|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||