|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.lib.StringUtil
Provides a collection of convenience methods for processing and
creating objects with String
value components.
Constructor Summary | |
StringUtil()
|
Method Summary | |
static void |
appendPair(StringBuffer b,
String s1,
String s2,
String separator,
String terminator)
|
static String |
arrayToString(Object array)
|
static String |
getList(int[] s,
String separator,
String quote)
Builds a CSV list from the specified int[], separator
String and quote String . |
static String |
getList(String[][] s,
String separator,
String quote)
Builds a CSV list from the specified String[][], separator string and quote string. |
static String |
getList(String[] s,
String separator,
String quote)
Builds a CSV list from the specified String[], separator string and quote string. |
static boolean |
isEmpty(String s)
Checks if text is empty (characters <= space) |
static int |
rTrimSize(String s)
|
static int |
skipSpaces(String s,
int start)
Skips any spaces at or after start and returns the index of first non-space character; |
static String |
toLowerSubset(String source,
char substitute)
Returns a string with non alphanumeric chars converted to the substitute character. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtil()
Method Detail |
public static String toLowerSubset(String source, char substitute)
source
- string to convertsubstitute
- character to use
public static String arrayToString(Object array)
public static String getList(String[] s, String separator, String quote)
separator
argument.
quote
argument.
separator
- the String
to use as the list element separatorquote
- the String
with which to quote the list elementss
- array of String
objects
public static String getList(int[] s, String separator, String quote)
separator
String
and quote
String
.
separator
argument.
quote
argument.
s
- the array of int valuesseparator
- the String
to use as the separatorquote
- the String
with which to quote the list elements
public static String getList(String[][] s, String separator, String quote)
separator
argument.
quote
argument.
separator
- the String
to use as the list element separatorquote
- the String
with which to quote the list elementss
- the array of String
array objects
public static void appendPair(StringBuffer b, String s1, String s2, String separator, String terminator)
public static boolean isEmpty(String s)
s
- java.lang.String
public static int rTrimSize(String s)
public static int skipSpaces(String s, int start)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |