public class DOMSourceXMLStreamReaderImpl extends java.lang.Object implements XMLStreamReader
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 |
---|
DOMSourceXMLStreamReaderImpl(javax.xml.transform.dom.DOMSource source) |
DOMSourceXMLStreamReaderImpl(org.w3c.dom.Node node) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getAttributeCount() |
java.lang.String |
getAttributeLocalName(int index) |
javax.xml.namespace.QName |
getAttributeName(int index) |
java.lang.String |
getAttributeNamespace(int index) |
java.lang.String |
getAttributePrefix(int index) |
java.lang.String |
getAttributeType(int index) |
java.lang.String |
getAttributeValue(int index) |
java.lang.String |
getAttributeValue(java.lang.String namespaceURI,
java.lang.String localName) |
java.lang.String |
getCharacterEncodingScheme() |
java.lang.String |
getElementText() |
java.lang.String |
getEncoding() |
int |
getEventType() |
java.lang.String |
getLocalName() |
Location |
getLocation() |
javax.xml.namespace.QName |
getName() |
javax.xml.namespace.NamespaceContext |
getNamespaceContext() |
int |
getNamespaceCount() |
java.lang.String |
getNamespacePrefix(int index) |
java.lang.String |
getNamespaceURI() |
java.lang.String |
getNamespaceURI(int index) |
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
java.lang.String |
getPIData() |
java.lang.String |
getPITarget() |
java.lang.String |
getPrefix() |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getText()
Returns the current text string.
|
char[] |
getTextCharacters()
Returns a character buffer for the current text.
|
int |
getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length)
Reads the current text into a buffer.
|
int |
getTextLength()
Returns the length of the current text.
|
int |
getTextStart()
Returns the offset of the current text.
|
java.lang.String |
getVersion() |
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText() |
boolean |
isAttributeSpecified(int index) |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStandalone() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
next() |
int |
nextTag()
Skips until the next START_ELEMENT or END_ELEMENT
|
void |
require(int type,
java.lang.String namespaceURI,
java.lang.String localName) |
boolean |
standaloneSet() |
public DOMSourceXMLStreamReaderImpl(javax.xml.transform.dom.DOMSource source) throws XMLStreamException
XMLStreamException
public DOMSourceXMLStreamReaderImpl(org.w3c.dom.Node node) throws XMLStreamException
XMLStreamException
public int getAttributeCount()
getAttributeCount
in interface XMLStreamReader
public java.lang.String getAttributeLocalName(int index)
getAttributeLocalName
in interface XMLStreamReader
public javax.xml.namespace.QName getAttributeName(int index)
getAttributeName
in interface XMLStreamReader
public java.lang.String getAttributeNamespace(int index)
getAttributeNamespace
in interface XMLStreamReader
public java.lang.String getAttributePrefix(int index)
getAttributePrefix
in interface XMLStreamReader
public java.lang.String getAttributeType(int index)
getAttributeType
in interface XMLStreamReader
public java.lang.String getAttributeValue(int index)
getAttributeValue
in interface XMLStreamReader
public boolean isAttributeSpecified(int index)
isAttributeSpecified
in interface XMLStreamReader
public java.lang.String getAttributeValue(java.lang.String namespaceURI, java.lang.String localName)
getAttributeValue
in interface XMLStreamReader
public java.lang.String getCharacterEncodingScheme()
getCharacterEncodingScheme
in interface XMLStreamReader
public java.lang.String getElementText() throws XMLStreamException
getElementText
in interface XMLStreamReader
XMLStreamException
public java.lang.String getEncoding()
getEncoding
in interface XMLStreamReader
public int getEventType()
getEventType
in interface XMLStreamReader
public Location getLocation()
getLocation
in interface XMLStreamReader
public java.lang.String getLocalName()
getLocalName
in interface XMLStreamReader
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface XMLStreamReader
public javax.xml.namespace.QName getName()
getName
in interface XMLStreamReader
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getNamespaceContext
in interface XMLStreamReader
public int getNamespaceCount()
getNamespaceCount
in interface XMLStreamReader
public java.lang.String getNamespacePrefix(int index)
getNamespacePrefix
in interface XMLStreamReader
public java.lang.String getNamespaceURI(int index)
getNamespaceURI
in interface XMLStreamReader
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface XMLStreamReader
public java.lang.String getPIData()
getPIData
in interface XMLStreamReader
public java.lang.String getPITarget()
getPITarget
in interface XMLStreamReader
public java.lang.String getPrefix()
getPrefix
in interface XMLStreamReader
public java.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
getProperty
in interface XMLStreamReader
java.lang.IllegalArgumentException
public java.lang.String getText()
getText
in interface XMLStreamReader
public char[] getTextCharacters()
getTextCharacters
in interface XMLStreamReader
public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException
getTextCharacters
in interface XMLStreamReader
XMLStreamException
public int getTextLength()
getTextLength
in interface XMLStreamReader
public int getTextStart()
getTextStart
in interface XMLStreamReader
public java.lang.String getVersion()
getVersion
in interface XMLStreamReader
public boolean hasName()
hasName
in interface XMLStreamReader
public boolean hasText()
hasText
in interface XMLStreamReader
public boolean isCharacters()
isCharacters
in interface XMLStreamReader
public boolean isEndElement()
isEndElement
in interface XMLStreamReader
public boolean isStandalone()
isStandalone
in interface XMLStreamReader
public boolean isStartElement()
isStartElement
in interface XMLStreamReader
public boolean isWhiteSpace()
isWhiteSpace
in interface XMLStreamReader
public int nextTag() throws XMLStreamException
nextTag
in interface XMLStreamReader
XMLStreamException
public void require(int type, java.lang.String namespaceURI, java.lang.String localName) throws XMLStreamException
require
in interface XMLStreamReader
XMLStreamException
public boolean standaloneSet()
standaloneSet
in interface XMLStreamReader
public boolean hasNext() throws XMLStreamException
hasNext
in interface XMLStreamReader
XMLStreamException
public int next() throws XMLStreamException
next
in interface XMLStreamReader
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLStreamReader
XMLStreamException