All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.bulletproof.util.StringUtils
String to lower
case
String to upper
case
public StringUtils()
public static String replace(String dstring,
char searchChar,
char replaceChar)
public static String replace(String dstring,
String searchString,
String replaceString)
public static String replace(String dstring,
String searchString,
String replaceString,
int occurences)
public static void arraycopy(char src[],
int src_position,
char dst[],
int dst_position,
int length)
src to the destination array
referenced by dst. The number of components copied is
equal to the length argument. The components at
positions srcOffset through
srcOffset+length-1 in the source array are copied into
positions dstOffset through
dstOffset+length-1, respectively, of the destination
array.
If the src and dst arguments refer to the
same array object, then the copying is performed as if the
components at positions srcOffset through
srcOffset+length-1 were first copied to a temporary
array with length components and then the contents of
the temporary array were copied into positions
dstOffset through dstOffset+length-1 of the
argument array.
If any of the following is true, an
ArrayStoreException is thrown and the destination is
not modified:
src argument refers to an object that is not an
array.
dst argument refers to an object that is not an
array.
src argument and dst argument refer to
arrays whose component types are different primitive types.
src argument refers to an array with a primitive
component type and the dst argument refers to an array
with a reference component type.
src argument refers to an array with a reference
component type and the dst argument refers to an array
with a primitive component type.
Otherwise, if any of the following is true, an
ArrayIndexOutOfBoundsException is
thrown and the destination is not modified:
srcOffset argument is negative.
dstOffset argument is negative.
length argument is negative.
srcOffset+length is greater than
src.length, the length of the source array.
dstOffset+length is greater than
dst.length, the length of the destination array.
Otherwise, if any actual component of the source array from
position srcOffset through
srcOffset+length-1 cannot be converted to the component
type of the destination array by assignment conversion, an
ArrayStoreException is thrown. In this case, let
k be the smallest nonnegative integer less than
length such that src[srcOffset+k]
cannot be converted to the component type of the destination
array; when the exception is thrown, source array components from
positions srcOffset through
srcOffset+k-1
will already have been copied to destination array positions
dstOffset through
dstOffset+k-1 and no other
positions of the destination array will have been modified.
src
array could not be stored into the dest array
because of a type mismatch.
public static String dquote(String base)
public static int indexOf(String base,
String str)
-1 is returned.
public static int indexOf(String base,
String str,
int fromIndex)
fromIndex, then the index of the first character
of the first such substring is returned. If it does not occur
as a substring starting at fromIndex or beyond,
-1 is returned.
public static int lastIndexOf(String base,
String str)
-1 is returned.
public static int lastIndexOf(String base,
String str,
int fromIndex)
fromIndex, then the index of the first character
of the first such substring is returned. If it does not occur
as a substring starting at fromIndex or beyond,
-1 is returned.
public static boolean startsWith(String base,
String str)
public static boolean endsWith(String base,
String str)
public static void getChars(String base,
int srcBegin,
int srcEnd,
char dst[],
int dstBegin)
public static String encrypt(int DSNType,
String eValue)
public static String encrypt(String eValue,
int offset)
public static String decrypt(String eValue,
int offset)
public static String strip(String columnName)
public static String trim(String text)
public static String ltrim(String text)
public static String toUpperCase(String str)
String to upper
case
public static String toLowerCase(String str)
String to lower
case
public static boolean isDigit(char ch)
All Packages Class Hierarchy This Package Previous Next Index