|
||||||||||
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(java.lang.String needle,
java.lang.String... haystack)
|
static boolean |
isBlank(java.lang.String string)
Tests if a string is blank: null, emtpy, or only whitespace (" ", \r\n, \t, etc) |
static boolean |
isNumeric(java.lang.String string)
Tests if a string is numeric, i.e. |
static boolean |
isWhitespace(int c)
Tests if a code point is "whitespace" as defined in the HTML spec. |
static java.lang.String |
join(java.util.Collection strings,
java.lang.String sep)
Join a collection of strings by a seperator |
static java.lang.String |
join(java.util.Iterator strings,
java.lang.String sep)
Join a collection of strings by a seperator |
static java.lang.String |
normaliseWhitespace(java.lang.String string)
|
static java.lang.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 java.lang.String join(java.util.Collection strings, java.lang.String sep)
strings
- collection of string objectssep
- string to place between strings
public static java.lang.String join(java.util.Iterator strings, java.lang.String sep)
strings
- iterator of string objectssep
- string to place between strings
public static java.lang.String padding(int width)
width
- amount of padding desired
public static boolean isBlank(java.lang.String string)
string
- string to test
public static boolean isNumeric(java.lang.String string)
string
- string to test
public static boolean isWhitespace(int c)
c
- code point to test
public static java.lang.String normaliseWhitespace(java.lang.String string)
public static boolean in(java.lang.String needle, java.lang.String... haystack)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |