@Immutable
public final class StringUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE91CIPHER |
static java.lang.String |
COMPRESSION_DEFLATE
Encoding DEFLATE
|
static java.lang.String |
COMPRESSION_GZIP
Encoding GZIP - default
|
static java.lang.String |
COMPRESSION_NONE
Encoding NONE
|
static java.lang.String |
ENCODED_URL_AND |
static java.lang.String |
ENCODED_URL_EQUALS |
static java.lang.String |
ENCODED_URL_QUESTION |
static java.lang.String |
ENCODED_URL_QUOTE |
static java.lang.String |
ENCODED_URL_SPACE |
static java.util.regex.Pattern |
FILE_MIME_TYPE_PATTERN
validate mime type
|
static java.lang.String[] |
HEX_CODES |
static java.util.regex.Pattern |
HOST_PATTERN |
static java.util.regex.Pattern |
IP_PATTERN
Valid IP address
|
static java.util.regex.Pattern |
LOCAL_IP_PATTERN
Local IP address
http://en.wikipedia.org/wiki/Private_network
|
static int |
PASSWORD_SEQUENTIAL_LENGTH |
static java.util.regex.Pattern |
PHONE_REGEX
valid phone regular expression
|
static java.util.regex.Pattern |
URI_PATTERN
URI pattern matching
KNOWN ISSUE: @ should be encoded if it's not used between user and host
|
static java.util.regex.Pattern |
UUENCODED_PATH_PATTERN
UUENCODED pattern
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
appendURLParam(java.lang.String uri,
java.lang.String param,
java.lang.String value)
Appends parameter and value to the given URL.
|
static boolean |
assertIllegalCharactersHTML(java.lang.String text)
http://en.wikipedia.org/wiki/Character_encodings_in_HTML
|
static java.lang.String |
byteArrayToHexString(byte[] b)
byte array to hex string
|
static java.lang.String |
capitalize(java.lang.String str)
Capitalizes the first letter of the specified string.
|
static java.lang.String |
capitalizeWordsInString(java.lang.String words)
Capitalizes the first character IN EACH WORD of the specified string.
|
static boolean |
check8Bit(java.lang.String text) |
static void |
checkIllegalCharactersHTML(java.lang.String text)
http://en.wikipedia.org/wiki/Character_encodings_in_HTML
|
static java.lang.String |
checkSumAdler32(byte[] data)
calculates the Adler32 checksum value of this byte array
|
static java.lang.String |
checkSumAdler32(java.lang.String str)
get the Adler32 checksum value of this string
|
static boolean |
checkXML(int c)
http://en.wikipedia.org/wiki/Valid_characters_in_XML
|
static boolean |
checkXML(java.lang.String text)
Check all characters are valid XML characters.
|
static java.lang.String |
cleanNumberString(java.lang.String valueToClean)
This method cleans chars that cause parsing problems when we want to parse String to Number (Integer,Double,Float,Long....)
|
static java.lang.String |
compress(java.lang.String text) |
static java.lang.String |
compressB91(java.lang.String text)
compress a java string with gzip and encode to ASCII with basE91
|
static byte[] |
compressToBytes(java.lang.String text)
Compress the text to a gzip byte array
|
static boolean |
contains(java.lang.String src,
java.lang.String qry)
Checks if the query can be found in the source string.
|
static boolean |
containsRudeWord(java.lang.String word)
Does this word contain a rude word.
|
static java.lang.String |
convertHtmlToText(java.lang.String htmlText)
Convert HTML to Text
|
static java.lang.String |
decode(java.lang.String str)
Decodes a
String from a MIME format called
"x-www-form-urlencoded " format. |
static byte[] |
decodeBase64(byte[] input)
Decodes a byte array that is base64 encoded.
|
static java.lang.String |
decodeBase64(java.lang.String encodedStr)
The Web Servers strip off the trailing ='s so just append them if
needed
|
static byte[] |
decodeBase91(java.lang.String src)
decode a basE91 to original string
|
static java.lang.String |
decodeHex(java.lang.String szSrc)
The Web Servers strip off the trailing ='s so just append them if
needed
|
static java.lang.String |
decodeHTML(java.lang.String encodedHTML)
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
|
static java.lang.String |
decodeSQL(java.lang.String sqlString) |
static byte[] |
decodeToBytes(java.lang.String str)
Decode into bytes
|
static java.lang.String |
decodeUTF8(java.lang.String utf8) |
static java.lang.String |
decodeUTF8base64(java.lang.String base64utf8)
decode a normal string from UTF8 & base 64 String.
|
static java.lang.String |
decompress(byte[] array)
decompress a string to a normal native java string
|
static java.lang.String |
decompress(byte[] array,
java.lang.String type)
decompress a string to a normal native java string
|
static java.lang.String |
decompress(java.lang.String compressedData,
java.lang.String type)
decompress a string to a normal native java string
|
static java.lang.String |
decompressB91(java.lang.String compressedData)
decompress a string with GZIP to a normal native java string
|
static java.lang.String |
deduplicate(java.lang.String words,
char delimator)
De-Duplicate words in a string.
|
static java.lang.String |
encode(byte[] array) |
static java.lang.String |
encode(byte[] array,
int off,
int len,
boolean strict) |
static java.lang.String |
encode(java.lang.String str)
Encodes a
String into a MIME format called
"x-www-form-urlencoded " format. |
static java.lang.String |
encode32(byte[] orgArray)
Encode bytes using 32 safe characters.
|
static byte[] |
encodeBase64(byte[] input)
Encodes a byte array to base64
|
static java.lang.String |
encodeBase64(java.lang.String szSrc) |
static java.lang.String |
encodeBase91(byte[] data)
encode a String to basE91 ASCII, basE91 is similar to BASE64 but more
efficient in both encoding speed and string size
|
static java.lang.String |
encodeHex(java.lang.String szSrc) |
static java.lang.String |
encodeHTML(java.lang.String value)
http://en.wikipedia.org/wiki/Character_encodings_in_HTML
http://www.w3.org/TR/html401/types.html#type-name
|
static java.lang.String |
encodeISqlValue(java.lang.String value)
encode a value used for isql to prevent sql injection
|
static java.lang.String |
encodeJavaDoc(java.lang.String doubleByteStr)
Some characters are valid in Java Docs comments that aren't in HTML.
|
static java.lang.String |
encodeSQL(java.lang.String doubleByteStr) |
static java.lang.String |
encodeStrict(java.lang.String str) |
static java.lang.String |
encodeUTF8(java.lang.String doubleByteStr) |
static java.lang.String |
encodeUTF8base64(java.lang.String normalString)
Encode a normal string UTF8 and then base 64
|
static java.lang.String |
escape(java.lang.String value)
Escapes special characters using a backslash
|
static int |
htmlWordCount(java.lang.String html)
count word count in a piece of html
|
static boolean |
inList(java.lang.String[] lst,
java.lang.String qry)
Checks if the query string is in the given list
|
static boolean |
isAsciiWhiteSpace(char c) |
static boolean |
isBlank(java.lang.Object obj)
Is the string blank same as trim().equals( "") just faster.
|
static boolean |
isCharacterValidURL(java.lang.Character c)
Invalid character found in the request target.
|
static boolean |
isContainAnyOf(java.lang.String pattern,
java.lang.String value)
Is a value Contain any of pattern
|
static boolean |
isLike(java.lang.String[] patterns,
java.lang.String value)
Is a value LIKE and a pattern
|
static boolean |
isLike(java.lang.String pattern,
java.lang.String value)
Is a value LIKE and a pattern
|
static boolean |
isNotEncoded(java.lang.String str)
check if the str is NOT strictly encoded into
"
x-www-form-urlencoded " format. |
static boolean |
isNumber(java.lang.String value)
Determines whether the value contains only numbers,
Please do not use this method for checking numeric value,
because it not allows dots,minus,hex...
|
static boolean |
isPatternMatch(java.lang.String pattern,
java.lang.String path)
Is a value LIKE and a comma separated list of patterns with excludes
|
static boolean |
isValidPhoneNumber(java.lang.String phone)
Is valid phone number
|
static java.lang.String |
join(java.lang.String fieldDelim,
java.util.List list) |
static java.lang.String |
leftPad(java.lang.String strToPad,
int len,
java.lang.String padStr) |
static java.lang.String[] |
listHashTags(java.lang.String text) |
static java.lang.String |
makeSafeHTML(java.lang.String text,
char replacementChar) |
static java.lang.String |
maskCreditCards(java.lang.String text) |
static boolean |
matches(java.lang.String pattern,
java.lang.String value)
Check if a value matches a pattern.
|
static boolean |
notBlank(java.lang.Object obj)
Is the string blank same as trim().equals( "") just faster.
|
static java.lang.String |
obscure(java.lang.Object obj) |
static double |
parseDouble(java.lang.String text) |
static boolean |
passwordHaveSequentialCharacters(java.lang.String password)
check if password have sequential characters.
|
static boolean |
passwordHaveSequentialCharacters(java.lang.String password,
boolean repeat,
boolean descend,
int limit)
check if password have sequential characters.
|
static java.lang.String |
replace(java.lang.String text,
java.lang.String name,
java.lang.String value)
Deprecated.
As of JDK 1.5, replaced by
String#replace(String, String) |
static java.lang.String |
rightPad(java.lang.String strToPad,
int len,
java.lang.String padStr)
Pad the string with the padding string and then truncate to the expected size.
|
static java.lang.String |
rightTrim(java.lang.String text) |
static java.lang.String |
romanNumeral(int arabic)
An object of type RomanNumeral is an integer between 1 and 3999.
|
static int |
romanNumeral(java.lang.String roman) |
static java.lang.String |
safeMessage(java.lang.String message) |
static java.lang.String |
shrinkTo(java.lang.String text,
java.lang.String[][] preHint,
java.lang.String[][] postHint,
int requestedTargetLength,
int requestedMaxLength)
What letters can be compressed? Here's the list: cc, ms, ns, ps, in, ls, fi, fl, ffl, ffi, iv, ix, vi, oy, ii, xi, nj, ".
|
static java.lang.String |
shrinkTo140(java.lang.String text,
java.lang.String[][] preHint,
java.lang.String[][] postHint) |
static java.lang.String[] |
split(java.lang.String values,
char fieldDelim,
char quote)
Performs a split on a string that contains multiple values separated by a field delimiter
and with strings grouped by a string delimiter
|
static java.lang.String[][] |
splitAttributes(java.lang.String attributes)
split attributes.
|
static java.lang.String[] |
splitCommands(java.lang.String currentSql) |
static java.lang.String |
sqlValueCheck(java.lang.String value)
Check that this is a value SQL value which includes WHERE clauses and columns
|
static java.lang.String |
stripPasswordFromURL(java.lang.String url)
Stript out passwords from urls in the form http://user:password@hostname
|
static java.lang.String |
stripPasswordFromURLs(java.lang.String urls)
Stript out passwords from URLs in the form http://user:password@hostname
|
static java.lang.String |
stripTagsFromHTML(java.lang.String HTML,
java.lang.String tags)
Strip the tags from the HTML
|
static java.lang.String |
toHexString(byte[] bytes)
Converts and array of bytes to a hexadecimal string, two characters per byte
|
static int |
twitterLength(java.lang.String text) |
static boolean |
validCharactersHTML(java.lang.String text) |
static java.lang.String |
webSafePath(java.lang.String title)
Convert any title to a web safe & human readable path
|
static java.lang.String |
wrap(java.lang.String text,
int pWidth,
int pRow)
Performs simple word wrapping.
|
static java.lang.String |
wrap(java.lang.String text,
int pWidth,
int pRow,
boolean addMoreSymbol)
Performs simple word wrapping.
|
public static final java.util.regex.Pattern IP_PATTERN
public static final java.util.regex.Pattern LOCAL_IP_PATTERN
public static final java.util.regex.Pattern HOST_PATTERN
public static final java.util.regex.Pattern UUENCODED_PATH_PATTERN
public static final java.util.regex.Pattern URI_PATTERN
public static final java.util.regex.Pattern PHONE_REGEX
public static final java.util.regex.Pattern FILE_MIME_TYPE_PATTERN
public static final java.lang.String COMPRESSION_GZIP
public static final java.lang.String COMPRESSION_NONE
public static final java.lang.String COMPRESSION_DEFLATE
public static final java.lang.String ENCODED_URL_QUOTE
public static final java.lang.String ENCODED_URL_AND
public static final java.lang.String ENCODED_URL_QUESTION
public static final java.lang.String ENCODED_URL_EQUALS
public static final java.lang.String ENCODED_URL_SPACE
public static final int PASSWORD_SEQUENTIAL_LENGTH
public static final java.lang.String[] HEX_CODES
public static final java.lang.String BASE91CIPHER
@CheckReturnValue public static boolean isAsciiWhiteSpace(char c)
c
- public static java.lang.String maskCreditCards(java.lang.String text)
@CheckReturnValue @Nonnull public static java.lang.String safeMessage(@Nullable java.lang.String message)
@CheckReturnValue public static java.lang.String romanNumeral(int arabic)
arabic
- @CheckReturnValue @Nonnull public static java.lang.String encode32(@Nonnull byte[] orgArray)
orgArray
- @CheckReturnValue public static int romanNumeral(java.lang.String roman)
@CheckReturnValue @Nonnull public static java.lang.String deduplicate(@Nonnull java.lang.String words, char delimator)
words
- delimator
- @CheckReturnValue public static java.lang.String webSafePath(@Nullable java.lang.String title)
title
- to convert@CheckReturnValue public static boolean isCharacterValidURL(java.lang.Character c)
c
- the characterpublic static java.lang.String[] listHashTags(java.lang.String text)
@CheckReturnValue public static java.lang.String shrinkTo140(java.lang.String text, java.lang.String[][] preHint, java.lang.String[][] postHint)
@CheckReturnValue public static int twitterLength(@Nonnull java.lang.String text)
@CheckReturnValue public static java.lang.String shrinkTo(java.lang.String text, java.lang.String[][] preHint, java.lang.String[][] postHint, int requestedTargetLength, int requestedMaxLength)
text
- preHint
- postHint
- requestedMaxLength
- the max lengthrequestedTargetLength
- the length the user waits the tweet@CheckReturnValue public static double parseDouble(java.lang.String text)
@Nonnull @CheckReturnValue public static byte[] compressToBytes(@Nonnull java.lang.String text) throws java.lang.Exception
text
- the text to compressjava.lang.Exception
- a serious problem@CheckReturnValue public static java.lang.String compress(java.lang.String text) throws java.lang.Exception
text
- java.lang.Exception
- a serious problem@CheckReturnValue public static java.lang.String decompress(java.lang.String compressedData, java.lang.String type) throws java.lang.Exception
compressedData
- type
- the typejava.lang.Exception
- a serious problem@Nonnull @CheckReturnValue public static java.lang.String decompress(@Nonnull byte[] array) throws java.lang.Exception
array
- java.lang.Exception
- a serious problem@Nonnull @CheckReturnValue public static java.lang.String decompress(@Nonnull byte[] array, @Nonnull java.lang.String type) throws java.lang.IllegalArgumentException, java.io.IOException
array
- type
- the typejava.lang.IllegalArgumentException
- a serious problemjava.io.IOException
@CheckReturnValue public static java.lang.String[][] splitAttributes(java.lang.String attributes)
attributes
- @CheckReturnValue public static java.lang.String[] splitCommands(java.lang.String currentSql)
currentSql
- @CheckReturnValue @Nonnull public static java.lang.String rightTrim(@Nonnull java.lang.String text)
text
- @CheckReturnValue public static boolean isPatternMatch(@Nonnull java.lang.String pattern, @Nonnull java.lang.String path)
path
- the "file" path to checkpattern
- The pattern to match to.@CheckReturnValue public static boolean isContainAnyOf(java.lang.String pattern, java.lang.String value)
pattern
- The pattern to match to.value
- The value to match@CheckReturnValue public static boolean matches(@Nonnull java.lang.String pattern, @Nonnull java.lang.String value)
pattern
- the pattern to checkvalue
- the value@CheckReturnValue public static boolean isLike(java.lang.String[] patterns, java.lang.String value)
patterns
- The patterns to match to.value
- The value to match@CheckReturnValue public static boolean isLike(@Nonnull java.lang.String pattern, @Nonnull java.lang.String value)
pattern
- The pattern to match to.value
- The value to match@CheckReturnValue @Nullable @Deprecated public static java.lang.String replace(@Nullable java.lang.String text, @Nonnull java.lang.String name, @Nonnull java.lang.String value)
String#replace(String, String)
text
- The string that will be iterated through to replace partsname
- The string that will be replacedvalue
- The string that will replace the original text.@CheckReturnValue public static boolean notBlank(@Nullable java.lang.Object obj)
obj
- @CheckReturnValue public static boolean isBlank(@Nullable java.lang.Object obj)
obj
- @CheckReturnValue public static java.lang.String decodeSQL(@Nullable java.lang.String sqlString)
sqlString
- @CheckReturnValue public static boolean assertIllegalCharactersHTML(@Nonnull java.lang.String text)
text
- java.lang.AssertionError
public static void checkIllegalCharactersHTML(@Nonnull java.lang.String text) throws java.lang.IllegalArgumentException
text
- java.lang.IllegalArgumentException
@CheckReturnValue public static boolean validCharactersHTML(@Nonnull java.lang.String text)
public static java.lang.String makeSafeHTML(@Nonnull java.lang.String text, char replacementChar)
@CheckReturnValue public static java.lang.String decodeHTML(@Nonnull java.lang.String encodedHTML)
encodedHTML
- @CheckReturnValue @Nonnull public static java.lang.String encodeHTML(@Nullable java.lang.String value)
value
- the value@CheckReturnValue @Nonnull public static java.lang.String checkSumAdler32(@Nullable java.lang.String str)
str
- String@CheckReturnValue @Nonnull public static java.lang.String checkSumAdler32(@Nonnull byte[] data)
data
- byte array@CheckReturnValue public static java.lang.String encodeJavaDoc(java.lang.String doubleByteStr)
doubleByteStr
- @CheckReturnValue public static java.lang.String sqlValueCheck(@Nullable java.lang.String value) throws java.lang.IllegalArgumentException
value
- the valuejava.lang.IllegalArgumentException
@CheckReturnValue public static java.lang.String encodeSQL(@Nullable java.lang.String doubleByteStr)
doubleByteStr
- @CheckReturnValue @Nullable public static java.lang.String decodeUTF8(@Nullable java.lang.String utf8)
utf8
- @CheckReturnValue public static java.lang.String stripTagsFromHTML(@Nonnull java.lang.String HTML, @Nonnull java.lang.String tags)
HTML
- the HTML to strip the tags from.tags
- the tags to strip@CheckReturnValue @Nonnull public static java.lang.String stripPasswordFromURL(@Nullable java.lang.String url)
url
- @CheckReturnValue @Nonnull public static java.lang.String stripPasswordFromURLs(@Nullable java.lang.String urls)
urls
- the URLs@CheckReturnValue @Nonnull public static java.lang.String encodeISqlValue(@Nonnull java.lang.String value)
value
- the value@CheckReturnValue public static int htmlWordCount(@Nullable java.lang.String html)
html
- html code@CheckReturnValue @Nonnull public static java.lang.String convertHtmlToText(@Nonnull java.lang.String htmlText) throws java.lang.Exception
htmlText
- The HTML to convertjava.lang.Exception
- a serious problem@CheckReturnValue @Nonnull public static java.lang.String encodeUTF8(@Nonnull java.lang.String doubleByteStr)
doubleByteStr
- @CheckReturnValue public static java.lang.String wrap(java.lang.String text, int pWidth, int pRow) throws NotFoundException
pWidth
- pRow
- text
- text to be wrapNotFoundException
@CheckReturnValue public static java.lang.String wrap(java.lang.String text, int pWidth, int pRow, boolean addMoreSymbol) throws NotFoundException
pWidth
- pRow
- text
- text to be wrapaddMoreSymbol
- adds "..." to value if last line is truncatedNotFoundException
@CheckReturnValue @Nonnull public static java.lang.String encode(@Nonnull java.lang.String str)
String
into a MIME format called
"x-www-form-urlencoded
" format.
for performance reasons check that we need to encode before creating new objects.str
- @CheckReturnValue @Nonnull public static java.lang.String encodeStrict(@Nonnull java.lang.String str)
str
- @CheckReturnValue @Nonnull public static java.lang.String encode(@Nonnull byte[] array)
array
- @CheckReturnValue public static java.lang.String encode(byte[] array, int off, int len, boolean strict)
array
- off
- len
- strict
- @CheckReturnValue public static boolean isNotEncoded(@Nullable java.lang.String str)
x-www-form-urlencoded
" format.str
- string to test@CheckReturnValue @Nonnull public static java.lang.String decode(@Nonnull java.lang.String str)
String
from a MIME format called
"x-www-form-urlencoded
" format.
a
' through 'z
',
'A
' through 'Z
', and '0
'
through '9
' remain the same.
' is converted into a
plus sign '+'.
%xy
", where xy is the two-digit
hexadecimal representation of the lower 8-bits of the character.
str
- java.lang.RuntimeException
@CheckReturnValue @Nonnull public static byte[] decodeToBytes(@Nonnull java.lang.String str)
str
- java.lang.RuntimeException
@CheckReturnValue @Nonnull public static java.lang.String leftPad(@Nonnull java.lang.String strToPad, @Nonnegative int len, @Nonnull java.lang.String padStr)
strToPad
- len
- padStr
- @CheckReturnValue @Nonnull public static java.lang.String obscure(@Nullable java.lang.Object obj)
obj
- @CheckReturnValue @Nonnull public static java.lang.String rightPad(@Nonnull java.lang.String strToPad, @Nonnegative int len, @Nonnull java.lang.String padStr)
strToPad
- The string that will be appended to.len
- The final length of the string.padStr
- the string to pad with.@Nonnull @CheckReturnValue public static java.lang.String compressB91(@Nonnull java.lang.String text) throws java.lang.Exception
text
- the string to be compressedjava.lang.Exception
- a serious exception@Nonnull @CheckReturnValue public static java.lang.String decompressB91(@Nonnull java.lang.String compressedData) throws java.lang.Exception
compressedData
- ASCII string to be decompressedjava.lang.Exception
- a serious exception@CheckReturnValue @Nonnull public static java.lang.String encodeBase91(@Nonnull byte[] data)
data
- the data@Nonnull @CheckReturnValue public static byte[] decodeBase91(@Nonnull java.lang.String src) throws java.lang.Exception
src
- string to be decodedjava.lang.Exception
- a serious exception@CheckReturnValue @Nonnull public static java.lang.String encodeUTF8base64(@Nonnull java.lang.String normalString)
normalString
- normal Java String@CheckReturnValue @Nonnull public static java.lang.String decodeUTF8base64(@Nonnull java.lang.String base64utf8)
base64utf8
- a String that is first UTF8 and then base64@CheckReturnValue public static boolean checkXML(@Nullable java.lang.String text)
text
- the text to check@CheckReturnValue public static boolean checkXML(int c)
c
- the character to check@CheckReturnValue public static boolean check8Bit(@Nonnull java.lang.String text)
@CheckReturnValue @Nonnull public static java.lang.String encodeBase64(@Nonnull java.lang.String szSrc)
szSrc
- @CheckReturnValue @Nonnull public static java.lang.String decodeBase64(@Nonnull java.lang.String encodedStr)
encodedStr
- encoded string@CheckReturnValue @Nonnull public static byte[] encodeBase64(@Nonnull byte[] input)
input
- the byte array to encode@CheckReturnValue @Nonnull public static byte[] decodeBase64(@Nonnull byte[] input)
input
- the base64 byte array to decode@CheckReturnValue @Nonnull public static java.lang.String byteArrayToHexString(@Nonnull byte[] b)
b
- byte array@CheckReturnValue @Nonnull public static java.lang.String encodeHex(@Nonnull java.lang.String szSrc)
szSrc
- @CheckReturnValue @Nullable public static java.lang.String decodeHex(@Nullable java.lang.String szSrc)
szSrc
- @CheckReturnValue public static boolean contains(@Nullable java.lang.String src, @Nullable java.lang.String qry)
src
- qry
- @CheckReturnValue public static boolean inList(@Nullable java.lang.String[] lst, @Nullable java.lang.String qry)
lst
- the list to searchqry
- the query string@CheckReturnValue @Nonnull public static java.lang.String toHexString(@Nonnull byte[] bytes)
bytes
- the bytes to convert@CheckReturnValue @Nonnull public static java.lang.String join(@Nonnull java.lang.String fieldDelim, @Nonnull java.util.List list)
@CheckReturnValue @Nonnull public static java.lang.String[] split(@Nonnull java.lang.String values, char fieldDelim, char quote)
values
- - value to be parsedfieldDelim
- the field delimiterquote
- the quote character@CheckReturnValue @Nonnull public static java.lang.String capitalizeWordsInString(@Nonnull java.lang.String words)
words
- the name to capitalize@CheckReturnValue @Nonnull public static java.lang.String capitalize(@Nonnull java.lang.String str)
str
- the name to capitalize@CheckReturnValue public static boolean passwordHaveSequentialCharacters(@Nonnull java.lang.String password)
password
- the password to check@CheckReturnValue public static boolean passwordHaveSequentialCharacters(@Nullable java.lang.String password, boolean repeat, boolean descend, int limit)
password
- the password to checkrepeat
- descend
- limit
- @CheckReturnValue public static boolean containsRudeWord(@Nonnull java.lang.String word)
word
- the word to check@CheckReturnValue @Nonnull public static java.lang.String cleanNumberString(@Nonnull java.lang.String valueToClean)
valueToClean
- - the String that we want to clean@CheckReturnValue public static boolean isNumber(@Nonnull java.lang.String value)
value
- value@CheckReturnValue public static boolean isValidPhoneNumber(@Nonnull java.lang.String phone)
phone
- phone@CheckReturnValue @Nullable public static java.lang.String escape(@Nullable java.lang.String value)
value
- the string@CheckReturnValue @Nonnull public static java.lang.String appendURLParam(@Nonnull java.lang.String uri, @Nonnull java.lang.String param, @Nonnull java.lang.String value)
uri
- param
- value
- the valuestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.