org.springframework.xml.stream
Class XmlEventStreamReader
java.lang.Object
org.springframework.xml.stream.AbstractXmlStreamReader
org.springframework.xml.stream.XmlEventStreamReader
- All Implemented Interfaces:
- javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader
public class XmlEventStreamReader
- extends AbstractXmlStreamReader
Implementation of the XMLStreamReader
interface that wraps a XMLEventReader
. Useful,
because the StAX XMLInputFactory
allows one to create a event reader from a stream reader, but not
vice-versa.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
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 |
Methods inherited from class org.springframework.xml.stream.AbstractXmlStreamReader |
getAttributeLocalName, getAttributeNamespace, getAttributePrefix, getAttributeValue, getElementText, getLocalName, getNamespaceURI, getNamespaceURI, getPrefix, getTextCharacters, getTextCharacters, getTextLength, hasName, hasNext, hasText, isCharacters, isEndElement, isStartElement, isWhiteSpace, nextTag, require |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlEventStreamReader
public XmlEventStreamReader(javax.xml.stream.XMLEventReader eventReader)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
isStandalone
public boolean isStandalone()
getVersion
public String getVersion()
getTextStart
public int getTextStart()
getText
public String getText()
getPITarget
public String getPITarget()
getPIData
public String getPIData()
getNamespaceCount
public int getNamespaceCount()
getNamespaceContext
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getName
public javax.xml.namespace.QName getName()
getLocation
public javax.xml.stream.Location getLocation()
getEventType
public int getEventType()
getEncoding
public String getEncoding()
getCharacterEncodingScheme
public String getCharacterEncodingScheme()
getAttributeCount
public int getAttributeCount()
close
public void close()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getAttributeName
public javax.xml.namespace.QName getAttributeName(int index)
getAttributeType
public String getAttributeType(int index)
getAttributeValue
public String getAttributeValue(int index)
getNamespacePrefix
public String getNamespacePrefix(int index)
getNamespaceURI
public String getNamespaceURI(int index)
getProperty
public Object getProperty(String name)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
isAttributeSpecified
public boolean isAttributeSpecified(int index)
next
public int next()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
standaloneSet
public boolean standaloneSet()
Copyright © 2010. All Rights Reserved.