public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertHexChars(String value)
turn any hex values (ie #e4) into chars
|
static String |
correctSpecialChars(String string) |
static String |
getTextString(byte[] rawText,
boolean keepReturns)
read a text String held in fieldName in string
|
static boolean |
isNumber(String textString)
check to see if the string contains anything other than
'-' '0-9' '.'
if so then its not a number.
|
static String |
makeHTMLNameSafe(String name)
replaces all spaces ' ' with underscores '_' to allow the whole name to be used in HTML
|
static String |
makeMethodSafe(String S)
Replaces illegal characters that aren't allowed in code
|
static String |
replaceAllManual(String string,
int find,
String replace) |
static String |
stripIllegalCharacters(String S)
Replaces all illegal characters as defined by ses the standard UNICODE
Consortium character repertoire.
|
static byte[] |
toBytes(String value) |
public static final String convertHexChars(String value)
value - public static boolean isNumber(String textString)
public static String makeHTMLNameSafe(String name)
public static String getTextString(byte[] rawText, boolean keepReturns)
public static byte[] toBytes(String value)
public static String makeMethodSafe(String S)
S - String to have characters replaced inCopyright © 2017. All rights reserved.