public final class StringUtil extends Object
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
fromBytes(byte[] bytes)
converts a byte array into a string using the current process engines default charset as
returned by
ProcessEngineConfigurationImpl.getDefaultCharset() |
static String |
fromBytes(byte[] bytes,
ProcessEngine processEngine)
converts a byte array into a string using the provided process engine's default charset as
returned by
ProcessEngineConfigurationImpl.getDefaultCharset() |
static boolean |
hasAnySuffix(String text,
String[] suffixes) |
static boolean |
isExpression(String text)
Checks whether a
String seams to be an expression or not |
static String[] |
split(String text,
String regex) |
static byte[] |
toByteArray(String string)
Gets the bytes from a string using the current process engine's default charset
|
static byte[] |
toByteArray(String string,
ProcessEngine processEngine)
Gets the bytes from a string using the provided process engine's default charset
|
public static boolean isExpression(String text)
String
seams to be an expression or nottext
- the text to checkpublic static String fromBytes(byte[] bytes)
ProcessEngineConfigurationImpl.getDefaultCharset()
bytes
- the byte arrayprocessEngine
- the process enginepublic static String fromBytes(byte[] bytes, ProcessEngine processEngine)
ProcessEngineConfigurationImpl.getDefaultCharset()
bytes
- the byte arrayprocessEngine
- the process enginepublic static byte[] toByteArray(String string)
string
- the string to get the bytes formpublic static byte[] toByteArray(String string, ProcessEngine processEngine)
string
- the string to get the bytes formprocessEngine
- the process engine to useCopyright © 2018. All rights reserved.