public class Strings extends Object
Constructor and Description |
---|
Strings() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBlank(String text) |
static boolean |
isNotBlank(String text) |
static String |
sanitize(String name)
Strip out any annoying to deal with characters from a string when used as
a file or directory name
|
static String |
sanitizeDirectory(String name)
Also remove any dots in the directory name
|
static List<String> |
split(String text,
String delimiter) |
static String |
trimString(String value,
int max) |
public static boolean isBlank(String text)
public static boolean isNotBlank(String text)
public static String sanitize(String name)
name
- public static String sanitizeDirectory(String name)
name
- Copyright © 2019 JBoss by Red Hat. All rights reserved.