|
Xindice API | |||||||||
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 int |
findWhiteSpace(java.lang.String value)
findWhiteSpace scans a String value for whitespace characters and returns the location of the first whitespace character found. |
static int |
findWhiteSpace(java.lang.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 java.lang.String |
javaEncode(java.lang.String value)
javaEncode converts a String value to a Java-printable String. |
static java.lang.String |
leftJustify(java.lang.String value,
int width)
leftJustify left-justifies a String value, space padding to width characters if the string is less than width. |
static void |
parseBuffer(java.util.Map retprops,
java.lang.String inbuffer,
java.lang.String delimiters,
boolean urldecode,
boolean multivalue)
parseBuffer parses through a String buffer and produces a Map table using the provided delimiters. |
static java.lang.String |
rightJustify(java.lang.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(java.lang.String value)
stringToInt quickly converts a String value to an int, returning 0 if a conversion error occurs. |
static int |
stringToInt(java.lang.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int stringToInt(java.lang.String value, int defvalue)
value
- The value to convertdefvalue
- The default value to returnpublic static int stringToInt(java.lang.String value)
value
- The value to convertpublic static java.lang.String leftJustify(java.lang.String value, int width)
value
- The value to left-justifywidth
- The width to left-justify topublic static java.lang.String rightJustify(java.lang.String value, int width)
value
- The value to right-justifywidth
- The width to right-justify topublic static void parseBuffer(java.util.Map retprops, java.lang.String inbuffer, java.lang.String delimiters, boolean urldecode, boolean multivalue)
retprops
- The Map to populateinbuffer
- The String buffer to parsedelimiters
- The delimiters to useurldecode
- Whether or not to URL-decode the valuesmultivalue
- Whether or not to parse multiple valuespublic static int findWhiteSpace(java.lang.String value, int start)
value
- The value to scanstart
- The starting positionpublic static int findWhiteSpace(java.lang.String value)
value
- The value to scanpublic static java.lang.String javaEncode(java.lang.String value)
value
- The value to convert
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |