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
XmlStreamWriterTemplateexecute in interface XmlStreamWriterTemplatecallback - the stream writer will be exposed to this callback for writingXMLStreamExceptionXhtmlExceptionpublic void execute(Writer writer, XmlStreamWriterCallback callback) throws XMLStreamException, IOException
XmlStreamWriterTemplateexecute in interface XmlStreamWriterTemplatewriter - the writer to which the output should be sentcallback - the stream writer will be exposed to this callback for writingXMLStreamExceptionIOExceptionCopyright © 2003–2018 Atlassian. All rights reserved.