|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsoup.helper.StringUtil
public final class StringUtil
A minimal String utility class. Designed for interal jsoup use only.
Constructor Summary | |
---|---|
StringUtil()
|
Method Summary | |
---|---|
static boolean |
in(String needle,
String... haystack)
|
static boolean |
isBlank(String string)
Tests if a string is blank: null, emtpy, or only whitespace (" ", \r\n, \t, etc) |
static boolean |
isNumeric(String string)
Tests if a string is numeric, i.e. |
static String |
join(Collection strings,
String sep)
Join a collection of strings by a seperator |
static String |
join(Iterator strings,
String sep)
Join a collection of strings by a seperator |
static String |
normaliseWhitespace(String string)
|
static String |
padding(int width)
Returns space padding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtil()
Method Detail |
---|
public static String join(Collection strings, String sep)
strings
- collection of string objectssep
- string to place between strings
public static String join(Iterator strings, String sep)
strings
- iterator of string objectssep
- string to place between strings
public static String padding(int width)
width
- amount of padding desired
public static boolean isBlank(String string)
string
- string to test
public static boolean isNumeric(String string)
string
- string to test
public static String normaliseWhitespace(String string)
public static boolean in(String needle, String... haystack)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |