com.thoughtworks.xstream.io.xml.StaxWriter Java Examples
The following examples show how to use
com.thoughtworks.xstream.io.xml.StaxWriter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XStreamMarshaller.java From spring-analysis-note with MIT License | 5 votes |
@Override protected void marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter) throws XmlMappingException { try { doMarshal(graph, new StaxWriter(new QNameMap(), streamWriter, this.nameCoder), null); } catch (XMLStreamException ex) { throw convertXStreamException(ex, true); } }
Example #2
Source File: XStreamMarshaller.java From java-technology-stack with MIT License | 5 votes |
@Override protected void marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter) throws XmlMappingException { try { doMarshal(graph, new StaxWriter(new QNameMap(), streamWriter, this.nameCoder), null); } catch (XMLStreamException ex) { throw convertXStreamException(ex, true); } }
Example #3
Source File: JettisonMappedXmlDriver.java From lams with GNU General Public License v2.0 | 5 votes |
public HierarchicalStreamWriter createWriter(final Writer writer) { try { if (useSerializeAsArray) { return new JettisonStaxWriter(new QNameMap(), mof.createXMLStreamWriter(writer), getNameCoder(), convention); } else { return new StaxWriter(new QNameMap(), mof.createXMLStreamWriter(writer), getNameCoder()); } } catch (final XMLStreamException e) { throw new StreamException(e); } }
Example #4
Source File: JettisonMappedXmlDriver.java From lams with GNU General Public License v2.0 | 5 votes |
public HierarchicalStreamWriter createWriter(final OutputStream output) { try { if (useSerializeAsArray) { return new JettisonStaxWriter(new QNameMap(), mof.createXMLStreamWriter(output), getNameCoder(), convention); } else { return new StaxWriter(new QNameMap(), mof.createXMLStreamWriter(output), getNameCoder()); } } catch (final XMLStreamException e) { throw new StreamException(e); } }
Example #5
Source File: XStreamMarshaller.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override protected void marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter) throws XmlMappingException { try { doMarshal(graph, new StaxWriter(new QNameMap(), streamWriter, this.nameCoder), null); } catch (XMLStreamException ex) { throw convertXStreamException(ex, true); } }