Package org.codehaus.stax2.ri
Class Stax2Util
java.lang.Object
org.codehaus.stax2.ri.Stax2Util
- All Implemented Interfaces:
XMLStreamConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Helper class for efficiently reading and aggregating variable length byte content.static final class
Helper class used to simplify text gathering while keeping at as efficient as possible. -
Field Summary
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
eventTypeDesc
(int type) Method that converts given standard Stax event type into textual representation.static String
trimSpaces
(String lexical) Method called to trim leading and/or trailing space that given lexical value has.
-
Method Details
-
eventTypeDesc
Method that converts given standard Stax event type into textual representation. -
trimSpaces
Method called to trim leading and/or trailing space that given lexical value has.- Returns:
- Trimmed value if
lexical
had at least one non-space character; null otherwise
-