public final class XMLUtils
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static char |
CR |
Carriage Return character
|
static java.lang.String |
EMPTY |
Empty String
|
static char |
LF |
Linefeed character
|
static char |
NULL |
Null character
|
static char |
SPACE |
Single space character
|
static char |
TAB |
Tab character
|
Constructor | Description |
---|---|
XMLUtils() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String[] |
fromQualified(java.lang.String qname) |
|
static int |
stripSpace(char[] data,
boolean stripAllLeadSpace,
boolean stripAllTrailSpace) |
Strips whitespace from the given String.
|
static java.lang.String |
stripSpace(java.lang.String data) |
Strips whitespace from the given String.
|
static java.lang.String |
stripSpace(java.lang.String data,
boolean stripAllLeadSpace,
boolean stripAllTrailSpace) |
Strips whitespace from the given String.
|
static java.lang.String |
toQualified(java.lang.String uri,
java.lang.String local) |
public static final char NULL
public static final char SPACE
public static final char TAB
public static final char CR
public static final char LF
public static final java.lang.String EMPTY
public static java.lang.String toQualified(java.lang.String uri, java.lang.String local)
public static java.lang.String[] fromQualified(java.lang.String qname)
public static java.lang.String stripSpace(java.lang.String data)
data
- the String to strip whitespace frompublic static java.lang.String stripSpace(java.lang.String data, boolean stripAllLeadSpace, boolean stripAllTrailSpace)
data
- the String to strip whitespace fromstripAllLeadSpace
- , a boolean indicating whether or not to
strip all leading space. If true all whitespace from the start of the
given String will be stripped. If false, all whitespace from the start
of the given String will be converted to a single space.stripAllTrailSpace
- , a boolean indicating whether or not to
strip all trailing space. If true all whitespace at the end of the
given String will be stripped. If false, all whitespace at the end
of the given String will be converted to a single space.public static int stripSpace(char[] data, boolean stripAllLeadSpace, boolean stripAllTrailSpace)
data
- the chars to strip whitespace fromstripAllLeadSpace
- , a boolean indicating whether or not to
strip all leading space. If true all whitespace from the start of the
given String will be stripped. If false, all whitespace from the start
of the given String will be converted to a single space.stripAllTrailSpace
- , a boolean indicating whether or not to
strip all trailing space. If true all whitespace at the end of the
given String will be stripped. If false, all whitespace at the end
of the given String will be converted to a single space.