Package com.hierynomus.utils
Class Strings
java.lang.Object
com.hierynomus.utils.Strings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNotBlank
(String s) Check whether the passed String is not null and not empty (after trim)static String
Join a string on a character.static byte[]
Return a byte[] of the String including a final null terminatorSplit a string on a character.
-
Constructor Details
-
Strings
public Strings()
-
-
Method Details
-
split
Split a string on a character.- Parameters:
string
- The string to split.c
- The character to split on.- Returns:
- The splitted parts of the string.
-
join
Join a string on a character.- Parameters:
strings
- The strings to join.c
- The character to join on.- Returns:
- The joined parts of the string.
-
nullTerminatedBytes
Return a byte[] of the String including a final null terminator- Parameters:
s
-- Returns:
-
isNotBlank
Check whether the passed String is not null and not empty (after trim)- Parameters:
s
- The string to check- Returns:
true
iff the string is not blank
-