Class SaajStaxReaderEx
- java.lang.Object
-
- org.jvnet.staxex.util.DOMStreamReader
-
- com.sun.xml.messaging.saaj.util.stax.SaajStaxReaderEx
-
- All Implemented Interfaces:
NamespaceContext,XMLStreamConstants,XMLStreamReader,XMLStreamReaderEx
public class SaajStaxReaderEx extends DOMStreamReader implements XMLStreamReaderEx
SaajStaxReaderEx- Author:
- shih-chang.chen@oracle.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jvnet.staxex.util.DOMStreamReader
DOMStreamReader.Scope
-
-
Field Summary
-
Fields inherited from class org.jvnet.staxex.util.DOMStreamReader
_current, _state, depth, scopes, wholeText
-
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
-
-
Constructor Summary
Constructors Constructor Description SaajStaxReaderEx(javax.xml.soap.SOAPElement se)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementTextTrim()Works likeXMLStreamReader.getElementText()but trims the leading and trailing whitespace.NamespaceContextExgetNamespaceContext()CharSequencegetPCDATA()Works likeXMLStreamReader.getText()but hides the actual data representation.char[]getTextCharacters()intgetTextLength()intgetTextStart()intnext()-
Methods inherited from class org.jvnet.staxex.util.DOMStreamReader
_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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.XMLStreamReader
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
-
-
-
-
Method Detail
-
next
public int next() throws XMLStreamException- Specified by:
nextin interfaceXMLStreamReader- Overrides:
nextin classDOMStreamReader- Throws:
XMLStreamException
-
getElementTextTrim
public String getElementTextTrim() throws XMLStreamException
Description copied from interface:XMLStreamReaderExWorks likeXMLStreamReader.getElementText()but trims the leading and trailing whitespace.The parser can often do this more efficiently than
getElementText().trim().- Specified by:
getElementTextTrimin interfaceXMLStreamReaderEx- Throws:
XMLStreamException- See Also:
XMLStreamReader.getElementText()
-
getPCDATA
public CharSequence getPCDATA() throws XMLStreamException
Description copied from interface:XMLStreamReaderExWorks likeXMLStreamReader.getText()but hides the actual data representation.- Specified by:
getPCDATAin interfaceXMLStreamReaderEx- Returns:
- The
CharSequencethat represents the character infoset items at the current position.The
CharSequenceis normally aString, but can be any otherCharSequenceimplementation. For binary data, however, use ofBase64Datais 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. - Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContextEx getNamespaceContext()
Description copied from interface:XMLStreamReaderEx- Specified by:
getNamespaceContextin interfaceXMLStreamReader- Specified by:
getNamespaceContextin interfaceXMLStreamReaderEx- Overrides:
getNamespaceContextin classDOMStreamReader
-
getTextLength
public int getTextLength()
- Specified by:
getTextLengthin interfaceXMLStreamReader- Overrides:
getTextLengthin classDOMStreamReader
-
getTextStart
public int getTextStart()
- Specified by:
getTextStartin interfaceXMLStreamReader- Overrides:
getTextStartin classDOMStreamReader
-
getTextCharacters
public char[] getTextCharacters()
- Specified by:
getTextCharactersin interfaceXMLStreamReader- Overrides:
getTextCharactersin classDOMStreamReader
-
-