java.lang.Object | +--com.ibm.commerce.marketingcenter.events.dbobjects.StringManipulationHelper
This helper class provides various methods to manipulate strings.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args) Main method of this string helper utility. |
static java.lang.String |
truncate(java.lang.String aString, char delimiter,
int maxLength) This will truncate a string from the last occurrence of a particular delimiter to the maximum specified length. |
static java.lang.String |
truncate(java.lang.String aString, int maxLength) This method takes a string and truncates it to a specific length. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- optional arguments from the command
linepublic static java.lang.String truncate(java.lang.String aString, char delimiter, int maxLength)
aString
- input stringdelimiter
- delimiter used in the string truncationmaxLength
- the specific length of the output stringpublic static java.lang.String truncate(java.lang.String aString, int maxLength)
aString
- input stringmaxLength
- the specific length of the output string