org.springframework.xml.stream
Class XmlEventStreamReader
java.lang.Object
org.springframework.xml.stream.AbstractXmlStreamReader
org.springframework.xml.stream.XmlEventStreamReader
- All Implemented Interfaces:
- XMLStreamConstants, 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(XMLEventReader eventReader)
throws XMLStreamException
- Throws:
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 NamespaceContext getNamespaceContext()
getName
public QName getName()
getLocation
public Location getLocation()
getEventType
public int getEventType()
getEncoding
public String getEncoding()
getCharacterEncodingScheme
public String getCharacterEncodingScheme()
getAttributeCount
public int getAttributeCount()
close
public void close()
throws XMLStreamException
- Throws:
XMLStreamException
getAttributeName
public 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 XMLStreamException
- Throws:
XMLStreamException
standaloneSet
public boolean standaloneSet()
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.