public class StringUtils
extends java.lang.Object
构造器和说明 |
---|
StringUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
convertInputStreamToString(java.io.InputStream inputStream)
Convert InputStream To String
|
static java.lang.String |
decodeHtml(java.lang.String string)
Decode Html String
|
static int |
getStringUnicodeLength(java.lang.String value)
Get Unicode Length.
|
static boolean |
ifStringExactlyInList(java.lang.String s,
java.util.ArrayList<java.lang.String> arrayList)
Judge if the ArrayList
|
static boolean |
ifStringInList(java.lang.String s,
java.util.ArrayList<java.lang.String> arrayList)
Judge if the ArrayList
|
static java.lang.String |
SHA1(java.lang.String string)
Get SHA1 of the String
|
static java.lang.String |
toHexString(byte[] keyData)
Convert byte[] to Hex String
|
public static int getStringUnicodeLength(java.lang.String value)
value
- public static java.lang.String convertInputStreamToString(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- java.io.IOException
public static java.lang.String decodeHtml(java.lang.String string)
string
- public static java.lang.String SHA1(java.lang.String string) throws java.security.NoSuchAlgorithmException
string
- java.security.NoSuchAlgorithmException
public static java.lang.String toHexString(byte[] keyData)
keyData
- public static boolean ifStringInList(java.lang.String s, java.util.ArrayList<java.lang.String> arrayList)
s
- arrayList
- public static boolean ifStringExactlyInList(java.lang.String s, java.util.ArrayList<java.lang.String> arrayList)
s
- arrayList
-