|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.util.StringUtilities
StringUtilities provides a set of commonly used String parsing and processing routines.
Method Summary | |
static boolean |
equals(String s1,
String s2)
|
static int |
findWhiteSpace(String value)
findWhiteSpace scans a String value for whitespace characters and returns the location of the first whitespace character found. |
static int |
findWhiteSpace(String value,
int start)
findWhiteSpace scans a String value for whitespace characters from a specified starting position and returns the location of the first whitespace character found. |
static String |
javaEncode(String value)
javaEncode converts a String value to a Java-printable String. |
static String |
leftJustify(String value,
int width)
leftJustify left-justifies a String value, space padding to width characters if the string is less than width. |
static String |
rightJustify(String value,
int width)
rightJustify right-justifies a String value, space padding to width characters if the string is less than width. |
static int |
stringToInt(String value)
stringToInt quickly converts a String value to an int, returning 0 if a conversion error occurs. |
static int |
stringToInt(String value,
int defvalue)
stringToInt quickly converts a String value to an int, returning a default value if a conversion error occurs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int stringToInt(String value, int defvalue)
value
- The value to convertdefvalue
- The default value to returnpublic static int stringToInt(String value)
value
- The value to convertpublic static String leftJustify(String value, int width)
value
- The value to left-justifywidth
- The width to left-justify topublic static String rightJustify(String value, int width)
value
- The value to right-justifywidth
- The width to right-justify topublic static int findWhiteSpace(String value, int start)
value
- The value to scanstart
- The starting positionpublic static int findWhiteSpace(String value)
value
- The value to scanpublic static String javaEncode(String value)
value
- The value to convertpublic static boolean equals(String s1, String s2)
|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |