public final class SaStringHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_STRING |
Modifier and Type | Method and Description |
---|---|
static String |
collectionToString(String separator,
Collection<String> collection)
Creates a string containing all strings in the collection separated by the specified
separator.
|
static String |
inputStreamToString(InputStream is)
Reads the content of a Stream into a String.
|
static boolean |
isEmpty(String str)
Test if the string is empty or not.
|
static String |
prepareDatabaseName(String dbName)
Removes all '[', ']' and '"' from the passed string.
|
static String |
readerToString(Reader is)
Reads the entire content of a Reader into a String.
|
static String |
toLowerCaseUnicode(String str) |
static String |
toUpperCaseUnicode(String str) |
public static final String EMPTY_STRING
public static boolean isEmpty(String str)
str
- Incomming stringpublic static String readerToString(Reader is) throws IOException
is
- input ReaderString
IOException
- IOExceptionpublic static String inputStreamToString(InputStream is) throws IOException
is
- the input streamString
IOException
- IOExceptionpublic static String toLowerCaseUnicode(String str)
str
- original stringString
, converted to lowercase.public static String toUpperCaseUnicode(String str)
str
- original stringString
, converted to uppercase.public static String collectionToString(String separator, Collection<String> collection)
separator
- the separatorcollection
- the collectionCopyright © 2016 SAPERION AG. All rights reserved.