public final class StringHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
StringHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkIfCharacterOccursXTimes(String toCheck,
char character,
int count) |
static boolean |
checkIfCharacterOccursXTimesIgnoreCase(String toCheck,
char character,
int count) |
static String |
concat(Iterable<?> src)
Deprecated.
use
Joiner . |
static String |
concat(Object... src)
Deprecated.
use
Joiner . |
static StringBuffer |
concat(StringBuffer buff,
Iterable<?> src)
Deprecated.
use
Joiner . |
static StringBuffer |
concat(StringBuffer buff,
Object... src)
Deprecated.
use
Joiner . |
static String |
convertStreamToString(InputStream is) |
static String |
convertStreamToString(InputStream is,
String charset) |
static boolean |
isNotEmpty(String string)
Check if string is not null and not empty
|
static boolean |
isNullOrEmpty(String string)
Deprecated.
use
Strings.isNullOrEmpty(java.lang.String) |
static String |
join(CharSequence sep,
Iterable<?> src)
Deprecated.
use
Joiner . |
static String |
join(CharSequence sep,
Object... src)
Deprecated.
use
Joiner . |
static StringBuffer |
join(CharSequence sep,
StringBuffer buff,
Iterable<?> src)
Deprecated.
use
Joiner . |
static StringBuffer |
join(CharSequence sep,
StringBuffer buff,
Object... src)
Deprecated.
use
Joiner . |
static String |
normalize(String toNormalize) |
static String[] |
splitToArray(String stringToSplit) |
static String[] |
splitToArray(String stringToSplit,
String separator) |
static List<String> |
splitToList(String string) |
static List<String> |
splitToList(String string,
String separator) |
static Set<String> |
splitToSet(String stringToSplit) |
static Set<String> |
splitToSet(String stringToSplit,
String separator) |
@Deprecated public static StringBuffer join(CharSequence sep, StringBuffer buff, Iterable<?> src)
Joiner
.@Deprecated public static String join(CharSequence sep, Iterable<?> src)
Joiner
.@Deprecated public static StringBuffer join(CharSequence sep, StringBuffer buff, Object... src)
Joiner
.@Deprecated public static String join(CharSequence sep, Object... src)
Joiner
.@Deprecated public static StringBuffer concat(StringBuffer buff, Iterable<?> src)
Joiner
.buff
- StringBuffer to add iterable contentsrc
- Iterable to join@Deprecated public static String concat(Iterable<?> src)
Joiner
.src
- Iterable to join@Deprecated public static StringBuffer concat(StringBuffer buff, Object... src)
Joiner
.buff
- StringBuffer to add Objectssrc
- Objects to join@Deprecated public static String concat(Object... src)
Joiner
.src
- Objects to joinpublic static String normalize(String toNormalize)
toNormalize
- the string to normalizepublic static boolean isNotEmpty(String string)
string
- string to check@Deprecated public static boolean isNullOrEmpty(String string)
Strings.isNullOrEmpty(java.lang.String)
string
- string to checkpublic static String convertStreamToString(InputStream is, String charset) throws OwsExceptionReport
OwsExceptionReport
public static String convertStreamToString(InputStream is) throws OwsExceptionReport
OwsExceptionReport
public static boolean checkIfCharacterOccursXTimesIgnoreCase(String toCheck, char character, int count)
public static boolean checkIfCharacterOccursXTimes(String toCheck, char character, int count)
Copyright © 2012-2015 52north.org. All Rights Reserved.