Example usage for org.springframework.util.xml StaxUtils createContentHandler

List of usage examples for org.springframework.util.xml StaxUtils createContentHandler

Introduction

In this page you can find the example usage for org.springframework.util.xml StaxUtils createContentHandler.

Prototype

public static ContentHandler createContentHandler(XMLEventWriter eventWriter) 

Source Link

Document

Create a SAX ContentHandler that writes events to the given StAX XMLEventWriter .

Usage

From source file:org.springframework.oxm.xmlbeans.XmlBeansMarshaller.java

@Override
protected final void marshalXmlEventWriter(Object graph, XMLEventWriter eventWriter) {
    ContentHandler contentHandler = StaxUtils.createContentHandler(eventWriter);
    marshalSaxHandlers(graph, contentHandler, null);
}

From source file:org.springframework.oxm.xmlbeans.XmlBeansMarshaller.java

@Override
protected final void marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter)
        throws XmlMappingException {
    ContentHandler contentHandler = StaxUtils.createContentHandler(streamWriter);
    marshalSaxHandlers(graph, contentHandler, null);
}