This class bridges PullProvider events to XMLStreamReader (Stax) events. That is, it acts
as an XMLStreamReader, fetching the underlying data from a PullProvider.
A PullProvider may provide access to any XDM sequence, whereas an XMLStreamReader always
reads a document. The conversion of a sequence to a document follows the rules for
"normalizing" a sequence in the Serialization specification: for example, atomic values are
converted into text nodes, with adjacent atomic values being space-separated.
close
public void close()
throws XMLStreamException
getAttributeCount
public int getAttributeCount()
getAttributeLocalName
public String getAttributeLocalName(int i)
getAttributeName
public QName getAttributeName(int i)
getAttributeNamespace
public String getAttributeNamespace(int i)
getAttributePrefix
public String getAttributePrefix(int i)
getAttributeType
public String getAttributeType(int i)
getAttributeValue
public String getAttributeValue(String uri,
String local)
getAttributeValue
public String getAttributeValue(int i)
getCharacterEncodingScheme
public String getCharacterEncodingScheme()
getElementText
public String getElementText()
throws XMLStreamException
getEncoding
public String getEncoding()
getEventType
public int getEventType()
getLocalName
public String getLocalName()
getLocation
public Location getLocation()
getName
public QName getName()
getNamespaceContext
public NamespaceContext getNamespaceContext()
getNamespaceCount
public int getNamespaceCount()
getNamespacePrefix
public String getNamespacePrefix(int i)
getNamespaceURI
public String getNamespaceURI()
getNamespaceURI
public String getNamespaceURI(String s)
getNamespaceURI
public String getNamespaceURI(int i)
getPIData
public String getPIData()
getPITarget
public String getPITarget()
getPrefix
public String getPrefix()
getProperty
public Object getProperty(String s)
throws IllegalArgumentException
getText
public String getText()
getTextCharacters
public char[] getTextCharacters()
getTextCharacters
public int getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length)
throws XMLStreamException
getTextLength
public int getTextLength()
getTextStart
public int getTextStart()
getVersion
public String getVersion()
hasName
public boolean hasName()
hasNext
public boolean hasNext()
throws XMLStreamException
hasText
public boolean hasText()
isAttributeSpecified
public boolean isAttributeSpecified(int i)
isCharacters
public boolean isCharacters()
isEndElement
public boolean isEndElement()
isStandalone
public boolean isStandalone()
isStartElement
public boolean isStartElement()
isWhiteSpace
public boolean isWhiteSpace()
next
public int next()
throws XMLStreamException
nextTag
public int nextTag()
throws XMLStreamException
require
public void require(int event,
String uri,
String local)
throws XMLStreamException
standaloneSet
public boolean standaloneSet()