public class SaajStaxReaderEx extends DOMStreamReader implements XMLStreamReaderEx
DOMStreamReader.Scope
_current, _state, depth, scopes, wholeText
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
SaajStaxReaderEx(SOAPElement se) |
Modifier and Type | Method and Description |
---|---|
String |
getElementTextTrim()
Works like
XMLStreamReader.getElementText() but trims the leading
and trailing whitespace. |
NamespaceContextEx |
getNamespaceContext() |
CharSequence |
getPCDATA()
Works like
XMLStreamReader.getText()
but hides the actual data representation. |
char[] |
getTextCharacters() |
int |
getTextLength() |
int |
getTextStart() |
int |
next() |
_next, close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getPrefix, getPrefixes, getProperty, getText, getTextCharacters, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, setCurrentNode, splitAttributes, standaloneSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet
public SaajStaxReaderEx(SOAPElement se)
public int next() throws XMLStreamException
next
in interface XMLStreamReader
next
in class DOMStreamReader
XMLStreamException
public String getElementTextTrim() throws XMLStreamException
XMLStreamReaderEx
XMLStreamReader.getElementText()
but trims the leading
and trailing whitespace.
The parser can often do this more efficiently than
getElementText().trim()
.
getElementTextTrim
in interface XMLStreamReaderEx
XMLStreamException
XMLStreamReader.getElementText()
public CharSequence getPCDATA() throws XMLStreamException
XMLStreamReaderEx
XMLStreamReader.getText()
but hides the actual data representation.getPCDATA
in interface XMLStreamReaderEx
CharSequence
that represents the
character infoset items at the current position.
The CharSequence
is normally a String
,
but can be any other CharSequence
implementation.
For binary data, however, use of Base64Data
is
recommended (so that the consumer interested in seeing it
as binary data may take advantage of mor efficient
data representation.)
The object returned from this method belongs to the parser,
and its content is guaranteed to be the same only until
the XMLStreamReader.next()
method is invoked.
XMLStreamException
public NamespaceContextEx getNamespaceContext()
XMLStreamReaderEx
getNamespaceContext
in interface XMLStreamReader
getNamespaceContext
in interface XMLStreamReaderEx
getNamespaceContext
in class DOMStreamReader
public int getTextLength()
getTextLength
in interface XMLStreamReader
getTextLength
in class DOMStreamReader
public int getTextStart()
getTextStart
in interface XMLStreamReader
getTextStart
in class DOMStreamReader
public char[] getTextCharacters()
getTextCharacters
in interface XMLStreamReader
getTextCharacters
in class DOMStreamReader
Copyright © 2019 JBoss by Red Hat. All rights reserved.