|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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 String |
escapeXml(String text)
Converts input text into its XML representation by escaping all special symbols, if any are present. |
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 boolean |
isBlank(String str)
|
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 return
public static int stringToInt(String value)
value
- The value to convert
public static String leftJustify(String value, int width)
value
- The value to left-justifywidth
- The width to left-justify to
public static String rightJustify(String value, int width)
value
- The value to right-justifywidth
- The width to right-justify to
public static int findWhiteSpace(String value, int start)
value
- The value to scanstart
- The starting position
public static int findWhiteSpace(String value)
value
- The value to scan
public static String javaEncode(String value)
value
- The value to convert
public static boolean equals(String s1, String s2)
public static String escapeXml(String text)
text
- Input string
public static boolean isBlank(String str)
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |