public class StringUtils
extends java.lang.Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBlank(java.lang.CharSequence cs)
Check that a String does not contain text.
|
static boolean |
isNotBlank(java.lang.CharSequence cs)
Check that a String contains text.
|
static java.lang.String |
streamToString(java.io.InputStream inputStream,
java.nio.charset.Charset charset)
Convert an
InputStream to a String. |
public static java.lang.String streamToString(java.io.InputStream inputStream,
java.nio.charset.Charset charset)
throws java.io.IOException
InputStream to a String.inputStream - The Input Stream to read from.charset - The charset of the Input Stream.java.io.IOException - An I/O exception occurred.public static boolean isNotBlank(java.lang.CharSequence cs)
cs - The character sequence to check for text.true if not blank.public static boolean isBlank(java.lang.CharSequence cs)
cs - The character sequence to check for text.true if blank.