Spring Web Services Framework

org.springframework.xml.stream
Class XmlEventStreamReader

java.lang.Object
  extended by org.springframework.xml.stream.AbstractXmlStreamReader
      extended by 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

Field Summary
 
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
 
Constructor Summary
XmlEventStreamReader(XMLEventReader eventReader)
           
 
Method Summary
 void close()
           
 int getAttributeCount()
           
 QName getAttributeName(int index)
           
 String getAttributeType(int index)
           
 String getAttributeValue(int index)
           
 String getCharacterEncodingScheme()
           
 String getEncoding()
           
 int getEventType()
           
 Location getLocation()
           
 QName getName()
           
 NamespaceContext getNamespaceContext()
           
 int getNamespaceCount()
           
 String getNamespacePrefix(int index)
           
 String getNamespaceURI(int index)
           
 String getPIData()
           
 String getPITarget()
           
 Object getProperty(String name)
           
 String getText()
           
 int getTextStart()
           
 String getVersion()
           
 boolean isAttributeSpecified(int index)
           
 boolean isStandalone()
           
 int next()
           
 boolean standaloneSet()
           
 
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
 

Constructor Detail

XmlEventStreamReader

public XmlEventStreamReader(XMLEventReader eventReader)
                     throws XMLStreamException
Throws:
XMLStreamException
Method Detail

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()

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.