|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.util.StringUtils
public final class StringUtils
StringUtils Utility class. This class contains Utility methods for manipulating strings. Inspired from commons & spring.
| Method Summary | |
|---|---|
static String |
cleanPath(String path)
Normalize the path by suppressing sequences like "path/.." and inner simple dots. |
static String |
collectionToDelimitedString(Collection<String> coll,
String delim)
Convenience method to return a Collection as a delimited (e.g. |
static String |
normalizePath(String path)
Normalize the path by removing occurrences of "..". |
static String |
replace(String inString,
String oldPattern,
String newPattern)
Replace all occurrences of a substring within a string with another string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String cleanPath(String path)
The result is convenient for path comparison. For other uses, notice that Windows separators ("\") are replaced by simple slashes.
path - the original path
public static String replace(String inString,
String oldPattern,
String newPattern)
inString - String to examineoldPattern - String to replacenewPattern - String to insert
public static String collectionToDelimitedString(Collection<String> coll,
String delim)
toString() implementations.
coll - the Collection to displaydelim - the delimiter to use (probably a ",")
public static String normalizePath(String path)
path - to normalize.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||