|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.sax.AbstractXmlReader
org.springframework.xml.stream.AbstractStaxXmlReader
org.springframework.xml.stream.StaxStreamXmlReader
public class StaxStreamXmlReader
SAX XMLReader that reads from a StAX XMLStreamReader. Reads from an
XMLStreamReader, and calls the corresponding methods on the SAX callback interfaces.
XMLStreamReader,
AbstractXmlReader.setContentHandler(org.xml.sax.ContentHandler),
AbstractXmlReader.setDTDHandler(org.xml.sax.DTDHandler),
AbstractXmlReader.setEntityResolver(org.xml.sax.EntityResolver),
AbstractXmlReader.setErrorHandler(org.xml.sax.ErrorHandler)| Constructor Summary | |
|---|---|
StaxStreamXmlReader(javax.xml.stream.XMLStreamReader reader)
Constructs a new instance of the StaxStreamXmlReader that reads from the given
XMLStreamReader. |
|
| Method Summary | |
|---|---|
protected void |
parseInternal()
Template-method that parses the StAX reader passed at construction-time. |
| Methods inherited from class org.springframework.xml.stream.AbstractStaxXmlReader |
|---|
parse, parse, setLocator |
| Methods inherited from class org.springframework.xml.sax.AbstractXmlReader |
|---|
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaxStreamXmlReader(javax.xml.stream.XMLStreamReader reader)
StaxStreamXmlReader that reads from the given
XMLStreamReader. The supplied stream reader must be in XMLStreamConstants.START_DOCUMENT
or XMLStreamConstants.START_ELEMENT state.
reader - the XMLEventReader to read from
java.lang.IllegalStateException - if the reader is not at the start of a document or element| Method Detail |
|---|
protected void parseInternal()
throws org.xml.sax.SAXException,
javax.xml.stream.XMLStreamException
AbstractStaxXmlReader
parseInternal in class AbstractStaxXmlReaderorg.xml.sax.SAXException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||