org.springframework.xml.stream
Class StaxEventContentHandler
java.lang.Object
org.springframework.xml.stream.AbstractStaxContentHandler
org.springframework.xml.stream.StaxEventContentHandler
- All Implemented Interfaces:
- ContentHandler
public class StaxEventContentHandler
- extends AbstractStaxContentHandler
SAX ContentHandler that transforms callback calls to XMLEvents and writes them to a
XMLEventConsumer.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
XMLEvent,
XMLEventConsumer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaxEventContentHandler
public StaxEventContentHandler(XMLEventConsumer consumer)
- Constructs a new instance of the
StaxEventContentHandler that writes to the given
XMLEventConsumer. A default XMLEventFactory will be created.
- Parameters:
consumer - the consumer to write events to
StaxEventContentHandler
public StaxEventContentHandler(XMLEventConsumer consumer,
XMLEventFactory factory)
- Constructs a new instance of the
StaxEventContentHandler that uses the given event factory to create
events and writes to the given XMLEventConsumer.
- Parameters:
consumer - the consumer to write events tofactory - the factory used to create events
setDocumentLocator
public void setDocumentLocator(Locator locator)
startDocumentInternal
protected void startDocumentInternal()
throws XMLStreamException
- Specified by:
startDocumentInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
endDocumentInternal
protected void endDocumentInternal()
throws XMLStreamException
- Specified by:
endDocumentInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
startElementInternal
protected void startElementInternal(QName name,
Attributes atts,
SimpleNamespaceContext namespaceContext)
throws XMLStreamException
- Specified by:
startElementInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
endElementInternal
protected void endElementInternal(QName name,
SimpleNamespaceContext namespaceContext)
throws XMLStreamException
- Specified by:
endElementInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
charactersInternal
protected void charactersInternal(char[] ch,
int start,
int length)
throws XMLStreamException
- Specified by:
charactersInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
ignorableWhitespaceInternal
protected void ignorableWhitespaceInternal(char[] ch,
int start,
int length)
throws XMLStreamException
- Specified by:
ignorableWhitespaceInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
processingInstructionInternal
protected void processingInstructionInternal(String target,
String data)
throws XMLStreamException
- Specified by:
processingInstructionInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
skippedEntityInternal
protected void skippedEntityInternal(String name)
throws XMLStreamException
- Specified by:
skippedEntityInternal in class AbstractStaxContentHandler
- Throws:
XMLStreamException
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.