Class DefaultXmlStreamWriterTemplate
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.DefaultXmlStreamWriterTemplate
-
- All Implemented Interfaces:
XmlStreamWriterTemplate
public class DefaultXmlStreamWriterTemplate extends Object implements XmlStreamWriterTemplate
Encapsulates the boiler plate around creating a stream writer.
-
-
Constructor Summary
Constructors Constructor Description DefaultXmlStreamWriterTemplate(XMLOutputFactory xmlFragmentOutputFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Writer writer, XmlStreamWriterCallback callback)Executes the specified callback and writes to the provided writer.
-
-
-
Constructor Detail
-
DefaultXmlStreamWriterTemplate
public DefaultXmlStreamWriterTemplate(XMLOutputFactory xmlFragmentOutputFactory)
-
-
Method Detail
-
execute
public void execute(Writer writer, XmlStreamWriterCallback callback) throws XMLStreamException, IOException
Description copied from interface:XmlStreamWriterTemplateExecutes the specified callback and writes to the provided writer.- Specified by:
executein interfaceXmlStreamWriterTemplate- Parameters:
writer- the writer to which the output should be sentcallback- the stream writer will be exposed to this callback for writing- Throws:
XMLStreamExceptionIOException
-
-