public class DefaultXmlStreamWriterTemplate extends Object implements XmlStreamWriterTemplate
Constructor and Description |
---|
DefaultXmlStreamWriterTemplate(XMLOutputFactory xmlFragmentOutputFactory) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Writer writer,
XmlStreamWriterCallback callback)
Executes the specified callback and writes to the provided writer.
|
String |
execute(XmlStreamWriterCallback callback)
Executes the specified callback and returns a string.
|
public DefaultXmlStreamWriterTemplate(XMLOutputFactory xmlFragmentOutputFactory)
public String execute(XmlStreamWriterCallback callback) throws XMLStreamException, XhtmlException
XmlStreamWriterTemplate
execute
in interface XmlStreamWriterTemplate
callback
- the stream writer will be exposed to this callback for writingXMLStreamException
XhtmlException
public void execute(Writer writer, XmlStreamWriterCallback callback) throws XMLStreamException, IOException
XmlStreamWriterTemplate
execute
in interface XmlStreamWriterTemplate
writer
- the writer to which the output should be sentcallback
- the stream writer will be exposed to this callback for writingXMLStreamException
IOException
Copyright © 2003–2015 Atlassian. All rights reserved.