|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ejb.genic.JString
This class implements useful methods not already implemented in the java.lang.String class.
Constructor Summary | |
JString(java.lang.String s)
|
Method Summary | |
java.lang.String |
replace(java.lang.String sOld,
java.lang.String sNew)
Returns a new string resulting from remplacing all occurrences, of sOld string in this string with sNew string. |
java.lang.String |
replace(java.lang.String sOld,
java.lang.String sNew,
boolean all)
Returns a new string resulting from replacing the first occurence, or all occurrences, of sOld string in this string with sNew string. |
java.lang.String |
replaceEndWith(java.lang.String oldSuffix,
java.lang.String newSuffix)
Returns a new string resulting from remplacing the end of this String from oldSuffix to newSuffix. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JString(java.lang.String s)
Method Detail |
public java.lang.String replace(java.lang.String sOld, java.lang.String sNew, boolean all)
sOld
- the old stringsNew
- the new stringall
- if true, all occurrences of the sOld string are replacedpublic java.lang.String replace(java.lang.String sOld, java.lang.String sNew)
sOld
- the old stringsNew
- the new string
public java.lang.String replaceEndWith(java.lang.String oldSuffix, java.lang.String newSuffix)
oldSuffix
- the old suffixnewSuffix
- the new suffix
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |