public class PullToStax
extends java.lang.Object
implements javax.xml.stream.XMLStreamReader
Modifier and Type | Class and Description |
---|---|
static class |
PullToStax.SourceStreamLocation
Bridge a SAX SourceLocator to a javax.xml.stream.Location
|
Constructor and Description |
---|
PullToStax(PullProvider provider)
Create a PullToStax instance, which wraps a Saxon PullProvider as a Stax XMLStreamReader
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getAttributeCount() |
java.lang.String |
getAttributeLocalName(int i) |
javax.xml.namespace.QName |
getAttributeName(int i) |
java.lang.String |
getAttributeNamespace(int i) |
java.lang.String |
getAttributePrefix(int i) |
java.lang.String |
getAttributeType(int i) |
java.lang.String |
getAttributeValue(int i) |
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String local) |
java.lang.String |
getCharacterEncodingScheme() |
java.lang.String |
getElementText() |
java.lang.String |
getEncoding() |
int |
getEventType() |
java.lang.String |
getLocalName() |
javax.xml.stream.Location |
getLocation() |
javax.xml.namespace.QName |
getName() |
javax.xml.namespace.NamespaceContext |
getNamespaceContext() |
int |
getNamespaceCount() |
java.lang.String |
getNamespacePrefix(int i) |
java.lang.String |
getNamespaceURI() |
java.lang.String |
getNamespaceURI(int i) |
java.lang.String |
getNamespaceURI(java.lang.String s) |
java.lang.String |
getPIData() |
java.lang.String |
getPITarget() |
java.lang.String |
getPrefix() |
java.lang.Object |
getProperty(java.lang.String s) |
java.lang.String |
getText() |
char[] |
getTextCharacters() |
int |
getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length) |
int |
getTextLength() |
int |
getTextStart() |
java.lang.String |
getVersion() |
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText() |
boolean |
isAttributeSpecified(int i) |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStandalone() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
next() |
int |
nextTag() |
void |
require(int event,
java.lang.String uri,
java.lang.String local) |
boolean |
standaloneSet() |
public PullToStax(PullProvider provider)
provider
- the Saxon PullProvider from which the events will be readpublic int getAttributeCount()
getAttributeCount
in interface javax.xml.stream.XMLStreamReader
public boolean isAttributeSpecified(int i)
isAttributeSpecified
in interface javax.xml.stream.XMLStreamReader
public javax.xml.namespace.QName getAttributeName(int i)
getAttributeName
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getAttributeLocalName(int i)
getAttributeLocalName
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getAttributeNamespace(int i)
getAttributeNamespace
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getAttributePrefix(int i)
getAttributePrefix
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getAttributeType(int i)
getAttributeType
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getAttributeValue(int i)
getAttributeValue
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getAttributeValue(java.lang.String uri, java.lang.String local)
getAttributeValue
in interface javax.xml.stream.XMLStreamReader
public int getEventType()
getEventType
in interface javax.xml.stream.XMLStreamReader
public int getNamespaceCount()
getNamespaceCount
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getText()
getText
in interface javax.xml.stream.XMLStreamReader
public int getTextLength()
getTextLength
in interface javax.xml.stream.XMLStreamReader
public int getTextStart()
getTextStart
in interface javax.xml.stream.XMLStreamReader
public char[] getTextCharacters()
getTextCharacters
in interface javax.xml.stream.XMLStreamReader
public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws javax.xml.stream.XMLStreamException
getTextCharacters
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public int next() throws javax.xml.stream.XMLStreamException
next
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public int nextTag() throws javax.xml.stream.XMLStreamException
nextTag
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public void close() throws javax.xml.stream.XMLStreamException
close
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public boolean hasName()
hasName
in interface javax.xml.stream.XMLStreamReader
public boolean hasNext() throws javax.xml.stream.XMLStreamException
hasNext
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public boolean hasText()
hasText
in interface javax.xml.stream.XMLStreamReader
public boolean isCharacters()
isCharacters
in interface javax.xml.stream.XMLStreamReader
public boolean isEndElement()
isEndElement
in interface javax.xml.stream.XMLStreamReader
public boolean isStandalone()
isStandalone
in interface javax.xml.stream.XMLStreamReader
public boolean isStartElement()
isStartElement
in interface javax.xml.stream.XMLStreamReader
public boolean isWhiteSpace()
isWhiteSpace
in interface javax.xml.stream.XMLStreamReader
public boolean standaloneSet()
standaloneSet
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getCharacterEncodingScheme()
getCharacterEncodingScheme
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getElementText() throws javax.xml.stream.XMLStreamException
getElementText
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public java.lang.String getEncoding()
getEncoding
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getLocalName()
getLocalName
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getPIData()
getPIData
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getPITarget()
getPITarget
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getPrefix()
getPrefix
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getVersion()
getVersion
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getNamespacePrefix(int i)
getNamespacePrefix
in interface javax.xml.stream.XMLStreamReader
public java.lang.String getNamespaceURI(int i)
getNamespaceURI
in interface javax.xml.stream.XMLStreamReader
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getNamespaceContext
in interface javax.xml.stream.XMLStreamReader
public javax.xml.namespace.QName getName()
getName
in interface javax.xml.stream.XMLStreamReader
public javax.xml.stream.Location getLocation()
getLocation
in interface javax.xml.stream.XMLStreamReader
public java.lang.Object getProperty(java.lang.String s) throws java.lang.IllegalArgumentException
getProperty
in interface javax.xml.stream.XMLStreamReader
java.lang.IllegalArgumentException
public void require(int event, java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
require
in interface javax.xml.stream.XMLStreamReader
javax.xml.stream.XMLStreamException
public java.lang.String getNamespaceURI(java.lang.String s)
getNamespaceURI
in interface javax.xml.stream.XMLStreamReader
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.