public final class Stax2Util
extends java.lang.Object
implements javax.xml.stream.XMLStreamConstants
Modifier and Type | Class and Description |
---|---|
static class |
Stax2Util.ByteAggregator
Helper class for efficiently reading and aggregating variable length
byte content.
|
static class |
Stax2Util.TextBuffer
Helper class used to simplify text gathering while keeping
at as efficient as possible.
|
Modifier | Constructor and Description |
---|---|
private |
Stax2Util() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
_isSpace(char c)
Note that it is assumed that any "weird" white space
(xml 1.1 LSEP and NEL) have been replaced by canonical
alternatives (linefeed for element content, regular space
for attributes)
|
static java.lang.String |
eventTypeDesc(int type)
Method that converts given standard Stax event type into
textual representation.
|
static java.lang.String |
trimSpaces(java.lang.String lexical)
Method called to trim leading and/or trailing space that given
lexical value has.
|
public static java.lang.String eventTypeDesc(int type)
public static java.lang.String trimSpaces(java.lang.String lexical)
lexical
had at least one
non-space character; null otherwiseprivate static final boolean _isSpace(char c)
Note that it is assumed that any "weird" white space (xml 1.1 LSEP and NEL) have been replaced by canonical alternatives (linefeed for element content, regular space for attributes)