|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.StringUtils
public class StringUtils
A collection of String
handling utility methods.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static int |
count(String str,
char c)
Deprecated. Use StringUtils.countMatches(String, String) |
static boolean |
isAlphaNumeric(char c)
Tests whether a given character is alphabetic, numeric or underscore |
static int |
matchStrings(String a,
String b)
Deprecated. Use StringUtils.indexOfDifference(String, String) |
static String |
replaceToken(String s)
Replaces tokens in input with Value present in System.getProperty |
static String[] |
split(String line)
Split a string as an array using whitespace as separator |
static String[] |
split(String line,
String delimiter)
Split a string as an array using a given set of separators |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static String[] split(String line)
line
- The string to be split
public static String[] split(String line, String delimiter)
line
- The string to be splitdelimiter
- A string containing token separators
public static boolean isAlphaNumeric(char c)
c
- The character to be tested
public static int count(String str, char c)
StringUtils.countMatches(String, String)
str
- The string to be testedc
- the char to be counted
public static int matchStrings(String a, String b)
StringUtils.indexOfDifference(String, String)
a
- The first stringb
- The second string
public static String replaceToken(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |